mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Allow the module to be properly unloaded
Terminating the host process will cause all sockets to be closed so we can join the threads.
This commit is contained in:
@@ -83,6 +83,12 @@ Vst3PluginBridge::Vst3PluginBridge()
|
||||
});
|
||||
}
|
||||
|
||||
Vst3PluginBridge::~Vst3PluginBridge() {
|
||||
// Drop all work make sure all sockets are closed
|
||||
plugin_host->terminate();
|
||||
io_context.stop();
|
||||
}
|
||||
|
||||
Steinberg::IPluginFactory* Vst3PluginBridge::get_plugin_factory() {
|
||||
// Even though we're working with raw pointers here, we should pretend that
|
||||
// we're `IPtr<Steinberg::IPluginFactory>` and do the reference counting
|
||||
|
||||
Reference in New Issue
Block a user