soc.2008.xmpp: 52b9ea9b: * removing some comment with XML example
tfar at soc.pidgin.im
tfar at soc.pidgin.im
Mon Aug 18 12:33:04 EDT 2008
-----------------------------------------------------------------
Revision: 52b9ea9b0dd85b448aee4d196b241b998407f7e6
Ancestor: 0c5f528dd1f80ae405e795f2eaa56882d5735b07
Author: tfar at soc.pidgin.im
Date: 2008-08-18T16:20:46
Branch: im.pidgin.soc.2008.xmpp
URL: http://d.pidgin.im/viewmtn/revision/info/52b9ea9b0dd85b448aee4d196b241b998407f7e6
Modified files:
libpurple/protocols/jabber/bosh.c
ChangeLog:
* removing some comment with XML example
* reporting error back to UI on session termination by connection manager
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/bosh.c 5d80c1520f0741655ba42b1dd67d3d191175e024
+++ libpurple/protocols/jabber/bosh.c 2adc456786dff920ee0b03da226c8f008752e00f
@@ -57,15 +57,6 @@ void jabber_bosh_connection_stream_resta
}
void jabber_bosh_connection_stream_restart(PurpleBOSHConnection *conn) {
- /*
- <body rid='1573741824'
- sid='SomeSID'
- to='jabber.org'
- xml:lang='en'
- xmpp:restart='true'
- xmlns='http://jabber.org/protocol/httpbind'
- xmlns:xmpp='urn:xmpp:xbosh'/>
- */
xmlnode *restart = xmlnode_new("body");
char *tmp = NULL;
conn->rid++;
@@ -89,6 +80,9 @@ gboolean jabber_bosh_connection_error_ch
if (type != NULL && !strcmp(type, "terminate")) {
conn->ready = FALSE;
+ purple_connection_error_reason (conn->js->gc,
+ PURPLE_CONNECTION_ERROR_OTHER_ERROR,
+ _("The BOSH conncetion manager suggested to terminate your session."));
return TRUE;
}
return FALSE;
More information about the Commits
mailing list