fix zero queue length polling lockup