changeset 25613:480736bfcf45

* removing some comment with XML example * reporting error back to UI on session termination by connection manager
author Tobias Markmann <tfar@soc.pidgin.im>
date Mon, 18 Aug 2008 16:20:46 +0000
parents 8badac6cc7c9
children 94ccccab4e98
files libpurple/protocols/jabber/bosh.c
diffstat 1 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/bosh.c	Mon Aug 18 15:44:43 2008 +0000
+++ b/libpurple/protocols/jabber/bosh.c	Mon Aug 18 16:20:46 2008 +0000
@@ -57,15 +57,6 @@
 }
 
 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 @@
 	
 	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;