diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-05-11 14:18:11 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-05-11 14:02:07 +0000 |
commit | 2e8aad650c50b96afc9e0821453a799ab85889d1 (patch) | |
tree | 760d666453eddf81d1564c0d5afd425496b6ee9e /src/libs/installer/remoteobject.h | |
parent | 5f3333c344ac1ef522cc5d5529e79f09a47e5c98 (diff) |
Replace waitForBytesWritten with flush
Unfortunately waitForByesWritten is known to fail from time to time:
QTBUG-24451 . We introduced it for making sure large data is actually
send, but flush() seems to serve the same purporse. The only drawback
is that flush() operates on the concrete socket, and therefore needs
to be called on the caller's side.
Change-Id: Ic92db298b3dad2c3f9eaa47d160aec517e33e284
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/remoteobject.h')
-rw-r--r-- | src/libs/installer/remoteobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/remoteobject.h b/src/libs/installer/remoteobject.h index 57ab0599d..18cd1ccbb 100644 --- a/src/libs/installer/remoteobject.h +++ b/src/libs/installer/remoteobject.h @@ -151,6 +151,7 @@ private: out << arg3; sendPacket(m_socket, name.toLatin1(), data); + m_socket->flush(); } private: |