* More XMPP tweaks, none of which fixed our current batch of problems
[citadel.git] / citadel / modules / xmpp / serv_xmpp.c
index 0ccf6861eb4b4e693d29cbda82c5a6dfa78ff453..b3cdab14ff87455203f189d6e7fb83af7c8e069e 100644 (file)
@@ -392,7 +392,8 @@ void xmpp_xml_end(void *data, const char *supplied_el) {
 
        else if (!strcasecmp(el, "stream")) {
                CtdlLogPrintf(CTDL_DEBUG, "XMPP client shut down their stream\n");
-               cprintf("<stream>\n");
+               xmpp_massacre_roster();
+               cprintf("</stream>\n");
                CC->kill_me = 1;
        }