changeset 28308:a501f14e6961

merge of '3817d6fd81f4052bb57cd8ad113d8ffd8028591b' and 'dfd110ca48604f96874c09efb2064228e62475f8'
author Paul Aurich <paul@darkrain42.org>
date Tue, 29 Sep 2009 16:19:47 +0000
parents 858d9563ee8c (current diff) 9206aabf0251 (diff)
children 7eaf2561b6dd
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/bosh.c	Tue Sep 29 01:36:03 2009 +0000
+++ b/libpurple/protocols/jabber/bosh.c	Tue Sep 29 16:19:47 2009 +0000
@@ -401,7 +401,8 @@
 
 void jabber_bosh_connection_close(PurpleBOSHConnection *conn)
 {
-	jabber_bosh_connection_send(conn, PACKET_TERMINATE, NULL);
+	if (conn->state == BOSH_CONN_ONLINE)
+		jabber_bosh_connection_send(conn, PACKET_TERMINATE, NULL);
 }
 
 static gboolean jabber_bosh_connection_error_check(PurpleBOSHConnection *conn, xmlnode *node) {