fix jb bug where once its full size it will never shrink due to logic err

This commit is contained in:
Anthony Minessale 2014-10-06 09:50:13 -05:00
parent f7210b2402
commit 397ec5ae1d

View File

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