Fix wait timeout
Merge pull request #4 from ader1990/fixwait1

Fix wait timeout