From 397ec5ae1d8ebb83d754c4a680dd21500566377d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 6 Oct 2014 09:50:13 -0500 Subject: [PATCH] fix jb bug where once its full size it will never shrink due to logic err --- src/switch_stfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }