Updated wait_loop to avoid extra wait after finished.
Merge branch 'master' of github.com:stelligent/opendelivery_gem