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/protocol.cpp | |
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/protocol.cpp')
-rw-r--r-- | src/libs/installer/protocol.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libs/installer/protocol.cpp b/src/libs/installer/protocol.cpp index ba19c38ee..1bd3f1eee 100644 --- a/src/libs/installer/protocol.cpp +++ b/src/libs/installer/protocol.cpp @@ -65,8 +65,6 @@ void sendPacket(QIODevice *device, const QByteArray &command, const QByteArray & break; packet.remove(0, bytesWritten); } - // needed for big packages over TCP on Windows - device->waitForBytesWritten(-1); } /*! |