diff options
author | Jonas Kvinge <jonas@jkvinge.net> | 2019-08-23 22:02:50 +0200 |
---|---|---|
committer | Itay Grudev <itay+89bf5c@grudev.com> | 2019-08-23 23:02:50 +0300 |
commit | 1aad2655855946a074481d7391d9a3cf72216f87 (patch) | |
tree | 501e20c29449f1cf88413a67b95e851cf01e2cf0 | |
parent | Fix spelling and typos (#70) (diff) | |
download | singleapplication-1aad2655855946a074481d7391d9a3cf72216f87.tar.xz |
Fix return value of sendMessage() (#68)
-rw-r--r-- | singleapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index a797231..bc9e059 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -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; } |