Stop flood of empty lines on plugin crash

This commit is contained in:
Robbert van der Helm
2020-03-15 17:26:01 +01:00
parent 138fa9eb31
commit 10c517401c
+4
View File
@@ -371,7 +371,11 @@ void HostBridge::async_log_pipe_lines(patched_async_pipe& pipe,
std::getline(std::istream(&buffer), line);
logger.log(prefix + line);
// Not sure why, but this async read will keep reading a ton of
// empty lines after the Wine process crashes
if (vst_host.running()) {
async_log_pipe_lines(pipe, buffer, prefix);
}
});
}