summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-10-13 17:58:20 +0000
committererdgeist <>2007-10-13 17:58:20 +0000
commitffffd807193f3504107c405458ab0fa15b0b1e3c (patch)
treeccd78c7a2f9fa3b767875dbee210d48db61d1c1a
parent6c1adb8fc8c135cf0c3017e5ca6454747b0153e4 (diff)
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
-rw-r--r--opentracker.c4
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 );