Avoid busy loop when worker is paused.
Merge pull request #70 from databus23/fix_busyloop_on_paused_worker

Avoid busy loop when worker is paused.