wasm: fix network reply error finished() signaling

The network reply needs to send the finished() signal after
any error.

Change-Id: Iafc42d26f91241293042b72201eef2e88613e468
Fixes: QTBUG-101286
Pick-to: 6.3 6.2
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Lorn Potter 2022-03-02 07:01:39 +10:00
parent f3150368c3
commit 42aa0028b7

View File

@ -508,6 +508,7 @@ void QNetworkReplyWasmImplPrivate::downloadFailed(emscripten_fetch_t *fetch)
QByteArray statusText(fetch->statusText);
reply->setStatusCode(fetch->status, statusText);
reply->emitReplyError(reply->statusCodeFromHttp(fetch->status, reply->request.url()), reasonStr);
reply->setReplyFinished();
}
reply->m_fetch = nullptr;
}