diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2023-11-05 12:37:16 -0600 |
|---|---|---|
| committer | Jeremy Rimpo <jrim@rimpo.org> | 2023-11-05 12:37:16 -0600 |
| commit | c48b7d8803c61077a7886c5db0844edef259cab5 (patch) | |
| tree | ed233560f6464d607593c0d0601d5d28b836f764 /src/multiprocess.cpp | |
| parent | af5e04208ab4e27c79e91466273005643e5a7043 (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.cpp | 9 |
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(); |
