Changed Freeswitch core to return with error instead of abort when a critical module fails to load

This commit is contained in:
David Yat Sin 2011-03-11 17:39:07 -05:00
parent 6692a70c52
commit a60086cd22
1 changed files with 1 additions and 1 deletions

View File

@ -1300,7 +1300,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_init(switch_bool_t autolo
if (switch_loadable_module_load_module_ex((char *) path, (char *) val, SWITCH_FALSE, global, &err) == SWITCH_STATUS_GENERR) {
if (critical && switch_true(critical)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Failed to load critical module '%s', abort()\n", val);
abort();
return SWITCH_STATUS_FALSE;
}
}
count++;