summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <de@gsmk.de>2014-10-07 00:32:07 +0200
committererdgeist <de@gsmk.de>2014-10-07 00:32:07 +0200
commit77c13fe6ef1ec7df30c8b357c64bc818a5c3d135 (patch)
treef943c60c43bab42fb77b7feef6096f74d22c131f
parent9816750420eb6ab2527cd8abd31c2b1a13f74437 (diff)
Only kick off udp handlers, when everything is initialised
-rw-r--r--opentracker.c6
1 files 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 ) {
623 ot_try_bind( serverip, 6969, FLAG_UDP ); 623 ot_try_bind( serverip, 6969, FLAG_UDP );
624 } 624 }
625 625
626 if( !g_udp_workers )
627 udp_init( -1, 0 );
628
629#ifdef WANT_SYSLOGS 626#ifdef WANT_SYSLOGS
630 openlog( "opentracker", 0, LOG_USER ); 627 openlog( "opentracker", 0, LOG_USER );
631 setlogmask(LOG_UPTO(LOG_INFO)); 628 setlogmask(LOG_UPTO(LOG_INFO));
@@ -654,6 +651,9 @@ int main( int argc, char **argv ) {
654 651
655 install_signal_handlers( ); 652 install_signal_handlers( );
656 653
654 if( !g_udp_workers )
655 udp_init( -1, 0 );
656
657 /* Kick off our initial clock setting alarm */ 657 /* Kick off our initial clock setting alarm */
658 alarm(5); 658 alarm(5);
659 659