From ffffd807193f3504107c405458ab0fa15b0b1e3c Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 13 Oct 2007 17:58:20 +0000 Subject: 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 --- opentracker.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opentracker.c b/opentracker.c index ce33eb6..872a891 100644 --- a/opentracker.c +++ b/opentracker.c @@ -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 ); -- cgit v1.2.3