From 77c13fe6ef1ec7df30c8b357c64bc818a5c3d135 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 7 Oct 2014 00:32:07 +0200 Subject: [PATCH] Only kick off udp handlers, when everything is initialised --- opentracker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opentracker.c b/opentracker.c index 3e72985..40ed78e 100644 --- a/opentracker.c +++ b/opentracker.c @@ -623,9 +623,6 @@ int main( int argc, char **argv ) { ot_try_bind( serverip, 6969, FLAG_UDP ); } - if( !g_udp_workers ) - udp_init( -1, 0 ); - #ifdef WANT_SYSLOGS openlog( "opentracker", 0, LOG_USER ); setlogmask(LOG_UPTO(LOG_INFO)); @@ -654,6 +651,9 @@ int main( int argc, char **argv ) { install_signal_handlers( ); + if( !g_udp_workers ) + udp_init( -1, 0 ); + /* Kick off our initial clock setting alarm */ alarm(5);