mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
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:
@@ -108,6 +108,10 @@ __cdecl
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
std::cerr << error.what() << 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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user