FS-11708 Fix deadlock on 'avmd uuid stop'

This commit is contained in:
Piotr Gregor 2019-03-15 16:49:29 +00:00 committed by Mike Jerris
parent 70dc40e680
commit c8e9eeaec9

View File

@ -1151,7 +1151,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avmd_load) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No memory pool assigned!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No memory pool assigned!\n");
return SWITCH_STATUS_TERM; return SWITCH_STATUS_TERM;
} }
switch_mutex_init(&avmd_globals.mutex, SWITCH_MUTEX_DEFAULT, pool); switch_mutex_init(&avmd_globals.mutex, SWITCH_MUTEX_NESTED, pool);
avmd_globals.pool = pool; avmd_globals.pool = pool;
if (avmd_load_xml_configuration(NULL) != SWITCH_STATUS_SUCCESS) { if (avmd_load_xml_configuration(NULL) != SWITCH_STATUS_SUCCESS) {