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; }