Subject: BOSH:can i wait unit XmppClient sent unavailable presence to server then dispose it.
Matrix v1.5.2.8
I have some logic like this when the client is logouted by user.
I found that sometimes the XmppClient disposed before unavailable presence and terminate body is sent.
Is there anyway to wait unit the SendUnavailablePresence() and XmppClient.Close() is processed?
I have some logic like this when the client is logouted by user.
- XmppClient.SendUnavailablePresence("logout");
- XmppClient.Close();
- XmppClient.Dispose();
I found that sometimes the XmppClient disposed before unavailable presence and terminate body is sent.
Is there anyway to wait unit the SendUnavailablePresence() and XmppClient.Close() is processed?