Fix for avoiding being blocked when the queue is full