Don't try to join nonexistent threads

This fixes a shutdown crash for individually hosted plugins. One more
reason to refactor the host launch behavior!
This commit is contained in:
Robbert van der Helm
2020-05-23 15:57:58 +02:00
parent 124b62bf6b
commit 42c755cac8
+4 -1
View File
@@ -482,7 +482,10 @@ intptr_t PluginBridge::dispatch(AEffect* /*plugin*/,
// These threads should now be finished because we've forcefully
// terminated the Wine process, interupting their socket operations
group_host_connect_handler.join();
if (group_host_connect_handler.joinable()) {
// This thread is only used when using plugin groups
group_host_connect_handler.join();
}
host_callback_handler.join();
wine_io_handler.join();