forked from Mirrors/freeswitch
mutex around one-off sql stmts from sofia
This commit is contained in:
parent
7300fe0837
commit
4319bc8bd9
@ -6389,7 +6389,9 @@ void sofia_glue_execute_sql_now(sofia_profile_t *profile, char **sqlp, switch_bo
|
||||
switch_assert(sqlp && *sqlp);
|
||||
sql = *sqlp;
|
||||
|
||||
switch_mutex_lock(profile->ireg_mutex);
|
||||
switch_sql_queue_manager_push_confirm(profile->qm, sql, 0, !sql_already_dynamic);
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
|
||||
if (sql_already_dynamic) {
|
||||
*sqlp = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user