Avoid busy loop when worker is paused.