mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
Fix return value of sendMessage() (#68)
This commit is contained in:
parent
791f6b1cae
commit
1aad265585
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user