summaryrefslogtreecommitdiff
path: root/src/multiprocess.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-11-05 12:55:19 -0600
committerGitHub <noreply@github.com>2023-11-05 12:55:19 -0600
commit8c562fe8a957e6820a2bf6e4f6d1678698d2e913 (patch)
tree90bf9230d56cf9a64f465f024af9d9ed3c6050b0 /src/multiprocess.cpp
parent8f77fff215c9cb035738ecf8485427679ea08a2c (diff)
parentc48b7d8803c61077a7886c5db0844edef259cab5 (diff)
Merge pull request #1915 from ModOrganizer2/download_issues
Download issue fixes
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();