From: Anthony Minessale Date: Thu, 22 Nov 2012 04:22:37 +0000 (-0600) Subject: mistake on last commit X-Git-Tag: v1.3.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=377e093a319c6ce59fabca97740938f1cbc3fb49;p=thirdparty%2Ffreeswitch.git mistake on last commit --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 556306ec97..caee1ee1f6 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -1714,10 +1714,9 @@ static void *SWITCH_THREAD_FUNC switch_user_sql_thread(switch_thread_t *thread, if ((lc = qm_ttl(qm)) < qm->max_trans / 4) { switch_yield(500000); - } else if (lc == 0) { - switch_thread_cond_wait(qm->cond, qm->cond_mutex); - } else { - switch_cond_next(); + if ((lc = qm_ttl(qm)) == 0) { + switch_thread_cond_wait(qm->cond, qm->cond_mutex); + } } }