mirror of
git://erdgeist.org/opentracker
synced 2025-02-17 06:31:30 +08:00
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:
parent
6c1adb8fc8
commit
ffffd80719
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user