]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix race condition where network lists are not created yet so nat detection does...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 2 Apr 2012 21:01:54 +0000 (16:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 2 Apr 2012 21:03:45 +0000 (16:03 -0500)
src/switch_core.c

index 9b876d8458296a1cc1eb52b6ee3cc09bdc5b200b..4eeb02e44764a542aea90e149b658d431cba9069 100644 (file)
@@ -1875,6 +1875,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
        runtime.runlevel++;
 
        switch_core_set_signal_handlers();
+       switch_load_network_lists(SWITCH_FALSE);
 
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Bringing up environment.\n");
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Loading Modules.\n");
@@ -1884,7 +1885,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
                return SWITCH_STATUS_GENERR;
        }
 
-       switch_load_network_lists(SWITCH_FALSE);
+
 
        switch_load_core_config("post_load_switch.conf");