Fix: Spurious cancellations of HTTP content downloads (#11668)

wip-string
Jonathan G Rennison 4 months ago committed by GitHub
parent 3e4dee6d0c
commit 502a52edd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -609,6 +609,8 @@ void ClientNetworkContentSocketHandler::OnReceiveData(const char *data, size_t l
/* Ignore any latent data coming from a connection we closed. */
if (this->http_response_index == -2) return;
this->lastActivity = std::chrono::steady_clock::now();
if (this->http_response_index == -1) {
if (data != nullptr) {
/* Append the rest of the response. */

Loading…
Cancel
Save