summaryrefslogtreecommitdiff
path: root/src/multiprocess.cpp
diff options
context:
space:
mode:
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();