summaryrefslogtreecommitdiff
path: root/src/multiprocess.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jrim@rimpo.org>2023-11-05 12:37:16 -0600
committerJeremy Rimpo <jrim@rimpo.org>2023-11-05 12:37:16 -0600
commitc48b7d8803c61077a7886c5db0844edef259cab5 (patch)
treeed233560f6464d607593c0d0601d5d28b836f764 /src/multiprocess.cpp
parentaf5e04208ab4e27c79e91466273005643e5a7043 (diff)
Download issue fixes
- Add scoped watcher disabler - Disable during mod install - Update interprocess message handler to fix 'unable to communicate' issues
Diffstat (limited to 'src/multiprocess.cpp')
-rw-r--r--src/multiprocess.cpp9
1 files changed, 5 insertions, 4 deletions
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();