Skip to content

Commit

Permalink
wasm: fix network reply error finished() signaling
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lpotter committed Mar 5, 2022
1 parent f315036 commit 42aa002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network/access/qnetworkreplywasmimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 42aa002

Please sign in to comment.