(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.

This commit is contained in:
rubidium 2009-02-25 17:00:59 +00:00
parent 1ad50ce4e6
commit 3ae9851bd8
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}