Fix hang with queue full.