mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
This commit is contained in:
parent
1ad50ce4e6
commit
3ae9851bd8
@ -505,7 +505,11 @@ void ClientNetworkContentSocketHandler::SendReceive()
|
||||
#else
|
||||
WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL);
|
||||
#endif
|
||||
if (FD_ISSET(this->sock, &read_fd)) this->Recv_Packets();
|
||||
if (FD_ISSET(this->sock, &read_fd)) {
|
||||
this->Recv_Packets();
|
||||
this->lastActivity = _realtime_tick;
|
||||
}
|
||||
|
||||
this->writable = !!FD_ISSET(this->sock, &write_fd);
|
||||
this->Send_Packets();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user