Most open trackers do not have the problem of not being called often enough.. so do not introduce an extra timeout when waiting for activity. That also removes one of the last extraneous gettimeofday calls

This commit is contained in:
erdgeist 2007-10-13 17:58:20 +00:00
parent 6c1adb8fc8
commit ffffd80719

View File

@ -728,11 +728,9 @@ static void server_mainloop( ) {
time_t next_timeout_check = g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL;
for( ; ; ) {
tai6464 t;
int64 i;
taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL) );
io_waituntil( t );
io_wait();
while( ( i = io_canread( ) ) != -1 ) {
const void *cookie = io_getcookie( i );