1
0
mirror of https://github.com/itay-grudev/SingleApplication.git synced 2025-04-01 01:52:39 +08:00

Fix return value of sendMessage() ()

This commit is contained in:
Jonas Kvinge 2019-08-23 22:02:50 +02:00 committed by Itay Grudev
parent 791f6b1cae
commit 1aad265585

View File

@ -168,7 +168,7 @@ bool SingleApplication::sendMessage( QByteArray message, int timeout )
d->connectToPrimary( timeout, SingleApplicationPrivate::Reconnect );
d->socket->write( message );
bool dataWritten = d->socket->flush();
d->socket->waitForBytesWritten( timeout );
bool dataWritten = d->socket->waitForBytesWritten( timeout );
d->socket->flush();
return dataWritten;
}