client: fix result argument of wait
#131
+151
−42
Merged