Send "</stream:stream>" when disconnecting from the server
authorMikael Berthe <mikael@lilotux.net>
Sun, 25 Dec 2005 20:51:20 +0100
changeset 634 f3c05d5fe459
parent 633 514aa246081d
child 635 d4119cb85aeb
Send "</stream:stream>" when disconnecting from the server
mcabber/src/jabglue.c
--- 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);