Fix for #249, if wait time is zero or less set state to done.

This should fix #249, not entirely sure if github properly extracts issue numbs from the title.