mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
parent
c4ea429273
commit
0620632d6a
1 changed files with 3 additions and 1 deletions
|
@ -494,12 +494,14 @@ void SingleApplicationPrivate::slotDataAvailable( QLocalSocket *dataSocket, quin
|
||||||
if ( !isFrameComplete( dataSocket ) )
|
if ( !isFrameComplete( dataSocket ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
auto message = dataSocket->readAll();
|
||||||
|
|
||||||
writeAck( dataSocket );
|
writeAck( dataSocket );
|
||||||
|
|
||||||
ConnectionInfo &info = connectionMap[dataSocket];
|
ConnectionInfo &info = connectionMap[dataSocket];
|
||||||
info.stage = StageConnectedHeader;
|
info.stage = StageConnectedHeader;
|
||||||
|
|
||||||
Q_EMIT q->receivedMessage(instanceId, dataSocket->readAll());
|
Q_EMIT q->receivedMessage(instanceId, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId )
|
void SingleApplicationPrivate::slotClientConnectionClosed( QLocalSocket *closedSocket, quint32 instanceId )
|
||||||
|
|
Loading…
Reference in a new issue