1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Fix: Spurious cancellations of HTTP content downloads

This commit is contained in:
Jonathan G Rennison
2023-12-30 20:16:53 +00:00
parent 88324a253e
commit d76780940d

View File

@@ -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. */