Disconnect process should be async
@sjoerd
Submitted by Sjoerd Simons Assigned to Telepathy bugs list
Description
When a client calls disconnect Gabble and Salut need to nicely close the xmpp connection(s). This involves waiting for a message from the other side and also that untill it's correctly closed new data might still arrive (such as text messages).
Suggested implementation is to add a disconnect hook, which if implemented causes tp-glib to not change the connection status to disconnected, but instead defer that to the CM, so it can decide when it's the right time to do that.