Fix return value of sendMessage() (#68)

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;
}