Skip to content

Commit

Permalink
Fix: Spurious cancellations of HTTP content downloads (#11668)
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison authored Jan 1, 2024
1 parent 3e4dee6 commit 502a52e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/network/network_content.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 502a52e

Please sign in to comment.