From a246ddf3443aa6a10c87879cba3ac00ef0be09df Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 22 May 2020 23:08:25 +0200 Subject: [PATCH] Manually close sockets when not killing process Killing the socket would otherwise cause the sockets to be closed, and both sides to shut down. --- src/plugin/plugin-bridge.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin/plugin-bridge.cpp b/src/plugin/plugin-bridge.cpp index 0bafc39f..f013eb0d 100644 --- a/src/plugin/plugin-bridge.cpp +++ b/src/plugin/plugin-bridge.cpp @@ -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