mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
[Core] Fix wrong lock order in switch_user_sql_thread()
This commit is contained in:
1 parent
79127d94e5
commit
69b8c080f6
1 file changed
+2
-1
@@ -2287,10 +2287,11 @@ static void *SWITCH_THREAD_FUNC switch_user_sql_thread(switch_thread_t *thread,
|
||||
switch_mutex_lock(qm->cond2_mutex);
|
||||
if (qm->skip_wait > 0) {
|
||||
qm->skip_wait--;
|
||||
switch_mutex_unlock(qm->cond2_mutex);
|
||||
} else {
|
||||
switch_mutex_unlock(qm->cond2_mutex);
|
||||
switch_thread_cond_wait(qm->cond, qm->cond_mutex);
|
||||
}
|
||||
switch_mutex_unlock(qm->cond2_mutex);
|
||||
}
|
||||
|
||||
i = 40;
|
||||
|
||||
Reference in new issue
Block a user