fix comparison
fix possible race issue in stats sent to stats listeners
trigger the queue shrinkage whenever a new block comes in

The previous location, when no data has come in, may not trigger if there is a
sustained feed for a long enough duration. This could lead to the queues expanding
taking up memory unneccessarily