Stop accepting sockets if Wine crashes on startup

This commit is contained in:
Robbert van der Helm
2020-05-09 16:31:11 +02:00
parent 9c19a1d01c
commit 484032202a
3 changed files with 38 additions and 0 deletions
+9
View File
@@ -152,6 +152,15 @@ class PluginBridge {
*/
boost::asio::local::stream_protocol::socket vst_host_aeffect;
/**
* Whether we're done accepting sockets. The plugin may hang indefinitely if
* the Wine process fails to start, since then nothing will connect to our
* sockets. While we're waiting for our sockets we'll periodically poll the
* Wine process to see if it's still running, and terminate the socket
* accepting if it is not.
*/
std::atomic_bool finished_accepting_sockets;
/**
* The thread that handles host callbacks.
*/