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:
parent
f3150368c3
commit
42aa0028b7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user