From c48b7d8803c61077a7886c5db0844edef259cab5 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 5 Nov 2023 12:37:16 -0600 Subject: Download issue fixes - Add scoped watcher disabler - Disable during mod install - Update interprocess message handler to fix 'unable to communicate' issues --- src/multiprocess.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/multiprocess.cpp') diff --git a/src/multiprocess.cpp b/src/multiprocess.cpp index 9637a637..2851b9e7 100644 --- a/src/multiprocess.cpp +++ b/src/multiprocess.cpp @@ -65,10 +65,11 @@ void MOMultiProcess::sendMessage(const QString& message) } socket.write(message.toUtf8()); - if (socket.bytesToWrite() && !socket.waitForBytesWritten(s_Timeout)) { - reportError( - tr("failed to communicate with running process: %1").arg(socket.errorString())); - return; + if (!socket.waitForBytesWritten(s_Timeout)) { + if (socket.bytesToWrite()) { + reportError(tr("failed to communicate with running process: %1") + .arg(socket.errorString())); + } } socket.disconnectFromServer(); -- cgit v1.3.1