fix: one missing return in waitForConnect wrapper.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>