mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Cancel group host shutdown timer with new request
Or else we will still shut down the host when loading the new plugin takes a while.
This commit is contained in:
@@ -198,6 +198,10 @@ void GroupBridge::accept_requests() {
|
|||||||
"' using socket endpoint base directory '" +
|
"' using socket endpoint base directory '" +
|
||||||
request.endpoint_base_dir + "'");
|
request.endpoint_base_dir + "'");
|
||||||
try {
|
try {
|
||||||
|
// Cancel the (initial) shutdown timer, since the plugin may
|
||||||
|
// take longer to initialize if it is new
|
||||||
|
shutdown_timer.cancel();
|
||||||
|
|
||||||
std::unique_ptr<HostBridge> bridge = nullptr;
|
std::unique_ptr<HostBridge> bridge = nullptr;
|
||||||
switch (request.plugin_type) {
|
switch (request.plugin_type) {
|
||||||
case PluginType::vst2:
|
case PluginType::vst2:
|
||||||
@@ -247,6 +251,8 @@ void GroupBridge::accept_requests() {
|
|||||||
logger.log("Error while initializing '" + request.plugin_path +
|
logger.log("Error while initializing '" + request.plugin_path +
|
||||||
"':");
|
"':");
|
||||||
logger.log(error.what());
|
logger.log(error.what());
|
||||||
|
|
||||||
|
maybe_schedule_shutdown(5s);
|
||||||
}
|
}
|
||||||
|
|
||||||
accept_requests();
|
accept_requests();
|
||||||
|
|||||||
Reference in New Issue
Block a user