We should read the message before sending the ack!
pull/835/head
Nicolas Werner 3 years ago
parent c4ea429273
commit 0620632d6a
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      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 )

Loading…
Cancel
Save