]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix jb bug where once its full size it will never shrink due to logic err
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Oct 2014 14:50:13 +0000 (09:50 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Oct 2014 14:50:13 +0000 (09:50 -0500)
src/switch_stfu.c

index a04889bd5172bce9d2729b7fa6b62ffca377aff1..2e19300ef4ca976fb7831c7339710afddb6ea248 100644 (file)
@@ -270,7 +270,7 @@ stfu_status_t _stfu_n_resize(stfu_instance_t *i, int32_t qlen, int line)
     stfu_status_t s;
     int32_t incr = qlen;
 
-    if (i->qlen == i->max_qlen) {
+    if (incr > 0 && i->qlen == i->max_qlen) {
         return STFU_IT_FAILED;
     }