From 1af67bab1d0286ecb777529d2b0f8bf9dc98a8b2 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 31 Mar 2012 20:01:05 +0000 Subject: Try to act upon all udp packets at once --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 0c535ec..52078b5 100644 --- a/opentracker.c +++ b/opentracker.c @@ -266,7 +266,7 @@ static void * server_mainloop( void * args ) { if( (intptr_t)cookie == FLAG_TCP ) handle_accept( sock ); else if( (intptr_t)cookie == FLAG_UDP ) - handle_udp6( sock, &ws ); + while( handle_udp6( sock, &ws ) ) {}; else if( (intptr_t)cookie == FLAG_SELFPIPE ) io_tryread( sock, ws.inbuf, G_INBUF_SIZE ); else -- cgit v1.2.3