summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/opentracker.c b/opentracker.c
index e122bab..4fc6678 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -2,7 +2,7 @@
It is considered beerware. Prost. Skol. Cheers or whatever.
Some of the stuff below is stolen from Fefes example libowfat httpd.
- $Id: opentracker.c,v 1.238 2012/05/28 15:24:33 erdgeist Exp $ */
+ $Id: opentracker.c,v 1.239 2014/10/06 22:32:28 git Exp $ */
/* System */
#include <stdlib.h>
@@ -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);
@@ -662,4 +662,4 @@ int main( int argc, char **argv ) {
return 0;
}
-const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.238 $\n";
+const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.239 $\n";