diff options
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 4 |
1 files changed, 1 insertions, 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( ) { | |||
728 | time_t next_timeout_check = g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL; | 728 | time_t next_timeout_check = g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL; |
729 | 729 | ||
730 | for( ; ; ) { | 730 | for( ; ; ) { |
731 | tai6464 t; | ||
732 | int64 i; | 731 | int64 i; |
733 | 732 | ||
734 | taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL) ); | 733 | io_wait(); |
735 | io_waituntil( t ); | ||
736 | 734 | ||
737 | while( ( i = io_canread( ) ) != -1 ) { | 735 | while( ( i = io_canread( ) ) != -1 ) { |
738 | const void *cookie = io_getcookie( i ); | 736 | const void *cookie = io_getcookie( i ); |