Network: Prevent content protocol timeout from killing HTTP downloads

See: https://github.com/OpenTTD/OpenTTD/issues/11636
This commit is contained in:
Jonathan G Rennison
2023-12-30 20:16:53 +00:00
parent f8085683fb
commit f5146e624f

View File

@@ -617,6 +617,8 @@ void ClientNetworkContentSocketHandler::OnReceiveData(UniqueBuffer<char> data)
return; return;
} }
this->lastActivity = std::chrono::steady_clock::now();
if (this->http_response_index == -1) { if (this->http_response_index == -1) {
if (data != nullptr) { if (data != nullptr) {
/* Append the rest of the response. */ /* Append the rest of the response. */