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

pull/155/head
rubidium 16 years ago
parent a9dd6dc2f5
commit 0d12c46b5e

@ -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…
Cancel
Save