The logic tells "after wait", but didn't call the wait function at all. Here is the fix: 
The logic tells "after wait", but didn't call the wait function at all.

Here is the fix: