Mercurial > hg
diff mcabber/src/jabglue.c @ 634:f3c05d5fe459
Send "</stream:stream>" when disconnecting from the server
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 25 Dec 2005 20:51:20 +0100 |
parents | 514aa246081d |
children | ebbe3845b46b |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sun Dec 25 20:20:20 2005 +0100 +++ b/mcabber/src/jabglue.c Sun Dec 25 20:51:20 2005 +0100 @@ -132,10 +132,13 @@ { if (!jc) return; - // announce it to everyone else + // Announce it to everyone else jb_setstatus(offline, NULL, ""); - // announce it to the user + // End the XML flow + jb_send_raw("</stream:stream>"); + + // Announce it to the user statehandler(jc, JCONN_STATE_OFF); jab_delete(jc);