summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteobject.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-05-11 14:18:11 +0200
committerKai Koehne <kai.koehne@theqtcompany.com>2015-05-11 14:02:07 +0000
commit2e8aad650c50b96afc9e0821453a799ab85889d1 (patch)
tree760d666453eddf81d1564c0d5afd425496b6ee9e /src/libs/installer/remoteobject.cpp
parent5f3333c344ac1ef522cc5d5529e79f09a47e5c98 (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.cpp')
-rw-r--r--src/libs/installer/remoteobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/remoteobject.cpp b/src/libs/installer/remoteobject.cpp
index 990710609..a4e88f84b 100644
--- a/src/libs/installer/remoteobject.cpp
+++ b/src/libs/installer/remoteobject.cpp
@@ -106,6 +106,7 @@ bool RemoteObject::connectToServer(const QVariantList &arguments)
out << arg;
sendPacket(m_socket, Protocol::Create, data);
+ m_socket->flush();
return true;
}