From: Anthony Minessale Date: Mon, 6 Oct 2014 14:50:13 +0000 (-0500) Subject: fix jb bug where once its full size it will never shrink due to logic err X-Git-Tag: v1.4.10~1^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=397ec5ae1d8ebb83d754c4a680dd21500566377d;p=thirdparty%2Ffreeswitch.git fix jb bug where once its full size it will never shrink due to logic err --- diff --git a/src/switch_stfu.c b/src/switch_stfu.c index a04889bd51..2e19300ef4 100644 --- a/src/switch_stfu.c +++ b/src/switch_stfu.c @@ -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; }