mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15: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( initMsg );
|
||||
bool result = socket->waitForBytesWritten( timeout - time.elapsed() );
|
||||
socket->flush();
|
||||
if( socket->waitForBytesWritten( timeout - time.elapsed() )) return true;
|
||||
|
||||
return false;
|
||||
return result;
|
||||
}
|
||||
|
||||
quint16 SingleApplicationPrivate::blockChecksum()
|
||||
|
Loading…
Reference in New Issue
Block a user