Fixed bug where receiving falls behind when multiple packets are in the queue.