mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 20:25:43 +08:00
Merge pull request #111 from jonaski/connecttoprimary
Fix return value of connectToPrimary() when connect is successful
This commit is contained in:
commit
224f1d1734
@ -267,10 +267,9 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con
|
|||||||
|
|
||||||
socket->write( header );
|
socket->write( header );
|
||||||
socket->write( initMsg );
|
socket->write( initMsg );
|
||||||
|
bool result = socket->waitForBytesWritten( timeout - time.elapsed() );
|
||||||
socket->flush();
|
socket->flush();
|
||||||
if( socket->waitForBytesWritten( timeout - time.elapsed() )) return true;
|
return result;
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
quint16 SingleApplicationPrivate::blockChecksum()
|
quint16 SingleApplicationPrivate::blockChecksum()
|
||||||
|
Loading…
Reference in New Issue
Block a user