diff options
author | Martin Petersson <martin.petersson@nokia.com> | 2011-03-04 11:13:20 (GMT) |
---|---|---|
committer | Martin Petersson <martin.petersson@nokia.com> | 2011-03-04 11:16:51 (GMT) |
commit | 7458c4bb9a0f6f925cb6002d3b664bbbc21e75ef (patch) | |
tree | 6d2ff904d2882caa753e0657c0af9a2049b97edf /src/network/access/qhttpnetworkconnection.cpp | |
parent | b2544e10f4b575b41ff91ad72d2d7186ac3109e5 (diff) | |
download | Qt-7458c4bb9a0f6f925cb6002d3b664bbbc21e75ef.zip Qt-7458c4bb9a0f6f925cb6002d3b664bbbc21e75ef.tar.gz Qt-7458c4bb9a0f6f925cb6002d3b664bbbc21e75ef.tar.bz2 |
QNAM HTTP: Fix the ioPostToHttpFromSocket auto test
Introduced a ClosingState for the channel to better track the state
of the socket.
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/access/qhttpnetworkconnection.cpp')
-rw-r--r-- | src/network/access/qhttpnetworkconnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index 3502113..35c3a67 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -765,7 +765,7 @@ void QHttpNetworkConnectionPrivate::_q_startNextRequest() //resend the necessary ones. for (int i = 0; i < channelCount; ++i) { - if (channels[i].resendCurrent) { + if (channels[i].resendCurrent && (channels[i].state != QHttpNetworkConnectionChannel::ClosingState)) { channels[i].resendCurrent = false; channels[i].state = QHttpNetworkConnectionChannel::IdleState; |