Add noexcept qualifications on the plugin side

See the last few commits.
This commit is contained in:
Robbert van der Helm
2021-05-14 17:50:12 +02:00
parent 8ba6e4a937
commit 37257298a1
7 changed files with 36 additions and 22 deletions
+10 -4
View File
@@ -363,10 +363,16 @@ Vst3PluginBridge::Vst3PluginBridge()
});
}
Vst3PluginBridge::~Vst3PluginBridge() {
// Drop all work make sure all sockets are closed
plugin_host->terminate();
io_context.stop();
Vst3PluginBridge::~Vst3PluginBridge() noexcept {
try {
// Drop all work make sure all sockets are closed
plugin_host->terminate();
io_context.stop();
} catch (const boost::system::system_error&) {
// It could be that the sockets have already been closed or that the
// process has already exited (at which point we probably won't be
// executing this, but maybe if all the stars align)
}
}
Steinberg::IPluginFactory* Vst3PluginBridge::get_plugin_factory() {