wait in xmppConnection