summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/SingleApplication-3.3.0/singleapplication_p.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/SingleApplication-3.3.0/singleapplication_p.cpp b/third_party/SingleApplication-3.3.0/singleapplication_p.cpp
index 3b6f96fe..4069ef78 100644
--- a/third_party/SingleApplication-3.3.0/singleapplication_p.cpp
+++ b/third_party/SingleApplication-3.3.0/singleapplication_p.cpp
@@ -494,12 +494,14 @@ void SingleApplicationPrivate::slotDataAvailable( QLocalSocket *dataSocket, quin
     if ( !isFrameComplete( dataSocket ) )
         return;
 
+    auto message = dataSocket->readAll();
+
     writeAck( dataSocket );
 
     ConnectionInfo &info = connectionMap[dataSocket];
     info.stage = StageConnectedHeader;
 
-    Q_EMIT q->receivedMessage(instanceId, dataSocket->readAll());
+    Q_EMIT q->receivedMessage(instanceId, message);
 }
 
 void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId )