diff --git a/key_list.c b/key_list.c index 72f990b..2437953 100644 --- a/key_list.c +++ b/key_list.c @@ -148,7 +148,7 @@ bool is_key_list_full(KEY_LIST_PTR q) { return true; } pthread_mutex_lock(q->lock); - r = q->capacity == q->size; + r = q->capacity <= q->size; pthread_mutex_unlock(q->lock); return r; }