mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
[Core] Fix wrong lock order in switch_user_sql_thread()
This commit is contained in:
parent
65afde7b43
commit
5169e58aca
@ -2287,10 +2287,11 @@ static void *SWITCH_THREAD_FUNC switch_user_sql_thread(switch_thread_t *thread,
|
|||||||
switch_mutex_lock(qm->cond2_mutex);
|
switch_mutex_lock(qm->cond2_mutex);
|
||||||
if (qm->skip_wait > 0) {
|
if (qm->skip_wait > 0) {
|
||||||
qm->skip_wait--;
|
qm->skip_wait--;
|
||||||
|
switch_mutex_unlock(qm->cond2_mutex);
|
||||||
} else {
|
} else {
|
||||||
|
switch_mutex_unlock(qm->cond2_mutex);
|
||||||
switch_thread_cond_wait(qm->cond, qm->cond_mutex);
|
switch_thread_cond_wait(qm->cond, qm->cond_mutex);
|
||||||
}
|
}
|
||||||
switch_mutex_unlock(qm->cond2_mutex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 40;
|
i = 40;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user