HTTP: Don't call allDone twice
Change-Id: Ia3fb2e2c185f4e61234ce237416028b0c45357f8 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
52a0eb4791
commit
56572f74e4
@ -216,6 +216,8 @@ void QHttpProtocolHandler::_q_receiveReply()
|
||||
}
|
||||
case QHttpNetworkReplyPrivate::AllDoneState:
|
||||
m_channel->allDone();
|
||||
if (state == QHttpNetworkReplyPrivate::AllDoneState)
|
||||
lastBytes = bytes; // No need to loop more just to call m_channel->allDone again.
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user