]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mistake on last commit
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Nov 2012 04:22:37 +0000 (22:22 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 22 Nov 2012 04:22:42 +0000 (22:22 -0600)
src/switch_core_sqldb.c

index 556306ec976af84e322dc4e909b93adf4f320f58..caee1ee1f601878b1de6a57869b1830771ae1cb8 100644 (file)
@@ -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);
+                       }
                }
        }