diff options
-rw-r--r-- | opentracker.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index 90d3324..09010c7 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -239,6 +239,7 @@ static void handle_accept( const int64 serversocket ) { | |||
239 | tai_unix( &(t.sec), (g_now_seconds + OT_CLIENT_TIMEOUT) ); | 239 | tai_unix( &(t.sec), (g_now_seconds + OT_CLIENT_TIMEOUT) ); |
240 | io_timeout( sock, t ); | 240 | io_timeout( sock, t ); |
241 | } | 241 | } |
242 | io_eagain(serversocket); | ||
242 | } | 243 | } |
243 | 244 | ||
244 | static void * server_mainloop( void * args ) { | 245 | static void * server_mainloop( void * args ) { |
@@ -269,9 +270,10 @@ static void * server_mainloop( void * args ) { | |||
269 | handle_accept( sock ); | 270 | handle_accept( sock ); |
270 | else if( (intptr_t)cookie == FLAG_UDP ) | 271 | else if( (intptr_t)cookie == FLAG_UDP ) |
271 | handle_udp6( sock, &ws ); | 272 | handle_udp6( sock, &ws ); |
272 | else if( (intptr_t)cookie == FLAG_SELFPIPE ) | 273 | else if( (intptr_t)cookie == FLAG_SELFPIPE ) { |
273 | io_tryread( sock, ws.inbuf, G_INBUF_SIZE ); | 274 | io_tryread( sock, ws.inbuf, G_INBUF_SIZE ); |
274 | else | 275 | fprintf(stderr, "pipe\n"); |
276 | } else | ||
275 | handle_read( sock, &ws ); | 277 | handle_read( sock, &ws ); |
276 | } | 278 | } |
277 | 279 | ||