mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
sqlite can't handle bi-directional mutexing
This commit is contained in:
parent
228f9772d7
commit
9ccdf30ed2
@ -5262,9 +5262,9 @@ static void general_event_handler(switch_event_t *event)
|
||||
}
|
||||
|
||||
|
||||
switch_mutex_lock(profile->ireg_mutex);
|
||||
switch_mutex_lock(profile->dbh_mutex);
|
||||
sofia_glue_execute_sql_callback(profile, NULL, sql, notify_callback, profile);
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
switch_mutex_unlock(profile->dbh_mutex);
|
||||
sofia_glue_release_profile(profile);
|
||||
|
||||
free(sql);
|
||||
|
@ -6414,9 +6414,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_mutex_lock(profile->dbh_mutex);
|
||||
switch_sql_queue_manager_push_confirm(profile->qm, sql, 0, !sql_already_dynamic);
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
switch_mutex_unlock(profile->dbh_mutex);
|
||||
|
||||
if (sql_already_dynamic) {
|
||||
*sqlp = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user