# HG changeset patch # User Tobias Markmann # Date 1219076446 0 # Node ID 480736bfcf455afde9729de0e77f94519f87948f # Parent 8badac6cc7c9135bc57733f0f7e5591c84fe750f * removing some comment with XML example * reporting error back to UI on session termination by connection manager diff -r 8badac6cc7c9 -r 480736bfcf45 libpurple/protocols/jabber/bosh.c --- 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) { - /* - - */ 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;