mirror of
git://erdgeist.org/opentracker
synced 2025-01-27 07:06:45 +00:00
Only kick off udp handlers, when everything is initialised
This commit is contained in:
parent
9816750420
commit
77c13fe6ef
@ -623,9 +623,6 @@ int main( int argc, char **argv ) {
|
|||||||
ot_try_bind( serverip, 6969, FLAG_UDP );
|
ot_try_bind( serverip, 6969, FLAG_UDP );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !g_udp_workers )
|
|
||||||
udp_init( -1, 0 );
|
|
||||||
|
|
||||||
#ifdef WANT_SYSLOGS
|
#ifdef WANT_SYSLOGS
|
||||||
openlog( "opentracker", 0, LOG_USER );
|
openlog( "opentracker", 0, LOG_USER );
|
||||||
setlogmask(LOG_UPTO(LOG_INFO));
|
setlogmask(LOG_UPTO(LOG_INFO));
|
||||||
@ -654,6 +651,9 @@ int main( int argc, char **argv ) {
|
|||||||
|
|
||||||
install_signal_handlers( );
|
install_signal_handlers( );
|
||||||
|
|
||||||
|
if( !g_udp_workers )
|
||||||
|
udp_init( -1, 0 );
|
||||||
|
|
||||||
/* Kick off our initial clock setting alarm */
|
/* Kick off our initial clock setting alarm */
|
||||||
alarm(5);
|
alarm(5);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user