From 10c517401c07fd378a0edb3d0574271c33a2b966 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 15 Mar 2020 17:26:01 +0100 Subject: [PATCH] Stop flood of empty lines on plugin crash --- src/plugin/host-bridge.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugin/host-bridge.cpp b/src/plugin/host-bridge.cpp index e800b796..935eb790 100644 --- a/src/plugin/host-bridge.cpp +++ b/src/plugin/host-bridge.cpp @@ -371,7 +371,11 @@ void HostBridge::async_log_pipe_lines(patched_async_pipe& pipe, std::getline(std::istream(&buffer), line); logger.log(prefix + line); - async_log_pipe_lines(pipe, buffer, prefix); + // 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); + } }); }