fix jb bug where once its full size it will never shrink due to logic err
This commit is contained in:
parent
f7210b2402
commit
397ec5ae1d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue