Changeset - r11226:cd52d6615d08
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-02-25 17:00:59
rubidium@openttd.org
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_content.cpp
Show inline comments
 
@@ -505,7 +505,11 @@ void ClientNetworkContentSocketHandler::
 
#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();
 
}
0 comments (0 inline, 0 general)