Merge pull request #111 from jonaski/connecttoprimary

Fix return value of connectToPrimary() when connect is successful
This commit is contained in:
Itay Grudev 2020-10-06 10:16:09 +01:00 committed by GitHub
commit 224f1d1734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()