wait properly instead of bad inifite loop
Merge pull request #9 from dreamhost/dhc_1076

wait properly instead of bad inifite loop