mirror of https://github.com/OpenTTD/OpenTTD
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
parent
1ad50ce4e6
commit
3ae9851bd8
|
@ -505,7 +505,11 @@ void ClientNetworkContentSocketHandler::SendReceive()
|
||||||
#else
|
#else
|
||||||
WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL);
|
WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL);
|
||||||
#endif
|
#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->writable = !!FD_ISSET(this->sock, &write_fd);
|
||||||
this->Send_Packets();
|
this->Send_Packets();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue