mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Fix wine forward initialization order
`io_context.run()` returns if there is no more work to do, so it should be called only after we give it something to do.
This commit is contained in:
@@ -124,11 +124,11 @@ HostBridge::HostBridge(audioMasterCallback host_callback)
|
||||
std::pair<Logger&, bool>(logger, false));
|
||||
}
|
||||
});
|
||||
wine_io_handler = std::thread([&]() { io_context.run(); });
|
||||
|
||||
// Print the Wine host's STDOUT and STDERR streams to the log file
|
||||
async_log_pipe_lines(wine_stdout, wine_stdout_buffer, "[Wine STDOUT] ");
|
||||
async_log_pipe_lines(wine_stderr, wine_stderr_buffer, "[Wine STDERR] ");
|
||||
wine_io_handler = std::thread([&]() { io_context.run(); });
|
||||
|
||||
// Read the plugin's information from the Wine process. This can only be
|
||||
// done after we started accepting host callbacks as the plugin might do
|
||||
|
||||
Reference in New Issue
Block a user