Manually close sockets when not killing process

Killing the socket would otherwise cause the sockets to be closed, and
both sides to shut down.
This commit is contained in:
Robbert van der Helm
2020-05-22 23:08:25 +02:00
parent 6da1909d4b
commit a246ddf344
+4
View File
@@ -469,6 +469,10 @@ intptr_t PluginBridge::dispatch(AEffect* /*plugin*/,
// automatically after all plugins have exited.
if (!config.group.has_value()) {
vst_host.terminate();
} else {
// Manually the dispatch socket will cause the host process to
// terminate
host_vst_dispatch.close();
}
// The `stop()` method will cause the IO context to just drop all of