projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ee5e8c5
)
* When an XMPP client closes its stream, close the server's stream and log out the...
author
Art Cancro
<ajc@citadel.org>
Tue, 23 Feb 2010 04:14:48 +0000
(
04:14
+0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 23 Feb 2010 04:14:48 +0000
(
04:14
+0000)
citadel/modules/xmpp/serv_xmpp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/xmpp/serv_xmpp.c
b/citadel/modules/xmpp/serv_xmpp.c
index c239ee56b435991ba07dad990de16a731142829c..0ccf6861eb4b4e693d29cbda82c5a6dfa78ff453 100644
(file)
--- a/
citadel/modules/xmpp/serv_xmpp.c
+++ b/
citadel/modules/xmpp/serv_xmpp.c
@@
-390,6
+390,12
@@
void xmpp_xml_end(void *data, const char *supplied_el) {
XMPP->ping_requested = 1;
}
+ else if (!strcasecmp(el, "stream")) {
+ CtdlLogPrintf(CTDL_DEBUG, "XMPP client shut down their stream\n");
+ cprintf("<stream>\n");
+ CC->kill_me = 1;
+ }
+
else {
CtdlLogPrintf(CTDL_DEBUG, "Ignoring unknown tag <%s>\n", el);
}