]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Now we also check, if no io happens
authorerdgeist <>
Mon, 8 Jan 2007 05:23:04 +0000 (05:23 +0000)
committererdgeist <>
Mon, 8 Jan 2007 05:23:04 +0000 (05:23 +0000)
opentracker.c

index 5bccab9d810cb227fd1104b1e8a7c0e41f1974bc..4d65564b42a9c4e6430ec4542f84e2465cd3dd42 100644 (file)
@@ -391,7 +391,9 @@ allparsed:
 
   for (;;) {
     int64 i;
-    io_wait();
+    taia_now(&t);
+    taia_addsec(&t,&t,OT_CLIENT_TIMEOUT_CHECKINTERVAL);
+    io_waituntil(t);
 
     taia_now(&t);
     if( taia_less( &next_timeout_check, &t ) ) {