Terminate all threads when initialization fails

With this the watchdog can correctly terminate VST2 bridges that get
stuck during initialization.
This commit is contained in:
Robbert van der Helm
2021-05-01 17:58:15 +02:00
parent bda9a0b75f
commit 56afefeb53
+4
View File
@@ -108,6 +108,10 @@ __cdecl
<< std::endl;
std::cerr << error.what() << std::endl;
// See below, just returning from `main()` isn't enough to terminate the
// process
TerminateProcess(GetCurrentProcess(), 0);
return 1;
}