diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-02-23 14:09:22 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-02-24 13:10:38 +0000 |
commit | 10b05d813ee29c5436282fa0f0e1606619a13d2a (patch) | |
tree | b9df2a3e73c6a23c2a68da5916e6cad54c34099a /src/libs/installer/remoteobject.h | |
parent | 3a1830c279adf9599c0e8da524567cd4c6560b23 (diff) |
Do wait an indefinite time for server replies
Operations can take sometimes longer than 30 seconds. Do wait forever,
provided that the port is still open.
Change-Id: If28fab22a42a863d026f2ff04cad5d8d980ea92b
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/remoteobject.h')
-rw-r--r-- | src/libs/installer/remoteobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/remoteobject.h b/src/libs/installer/remoteobject.h index 979d8fafd..f0f8da5fe 100644 --- a/src/libs/installer/remoteobject.h +++ b/src/libs/installer/remoteobject.h @@ -96,7 +96,7 @@ public: QByteArray command; QByteArray data; while (!receivePacket(m_socket, &command, &data)) { - if (!m_socket->waitForReadyRead(30000)) { + if (!m_socket->waitForReadyRead(-1)) { throw Error(tr("Could not read all data after sending command: %1. " "Bytes expected: %2, Bytes received: %3. Error: %4").arg(name).arg(0) .arg(m_socket->bytesAvailable()).arg(m_socket->errorString())); |