mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
fix startup race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5502 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
fc1cd4e38b
commit
d04d8ffea1
2 files changed
+9
-6
No files matched your search
@@ -398,6 +398,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(const char *console, const char
|
||||
switch_uuid_t uuid;
|
||||
memset(&runtime, 0, sizeof(runtime));
|
||||
|
||||
runtime.no_new_sessions = 1;
|
||||
|
||||
/* INIT APR and Create the pool context */
|
||||
if (apr_initialize() != SWITCH_STATUS_SUCCESS) {
|
||||
*err = "FATAL ERROR! Could not initilize APR\n";
|
||||
@@ -577,6 +579,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(const char *console
|
||||
"\nFreeSWITCH Version %s Started.\nCrash Protection [%s]\nMax Sessions[%u]\n\n", SWITCH_VERSION_FULL,
|
||||
runtime.crash_prot ? "Enabled" : "Disabled",
|
||||
switch_core_session_limit(0));
|
||||
|
||||
runtime.no_new_sessions = 0;
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user