diff plugins/jabber/jabber.c @ 1666:8b0c165a33f4

[gaim-migrate @ 1676] jabber fixes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 30 Mar 2001 20:42:15 +0000
parents fc77d4f1599e
children 91cddbcfdd17
line wrap: on
line diff
--- a/plugins/jabber/jabber.c	Fri Mar 30 18:12:00 2001 +0000
+++ b/plugins/jabber/jabber.c	Fri Mar 30 20:42:15 2001 +0000
@@ -329,8 +329,7 @@
 		debug_printf("input: %s\n", buf);
 		XML_Parse(j->parser, buf, len, 0);
 	} else if (len <= 0) {
-		STATE_EVT(JCONN_STATE_OFF);
-		gjab_stop(j);
+		STATE_EVT(JCONN_STATE_OFF)
 	}
 }
 
@@ -878,7 +877,8 @@
 {
 	struct jabber_data *jd = gc->proto_data;
 	gdk_input_remove(gc->inpa);
-	gjab_stop(jd->jc);
+	gjab_delete(jd->jc);
+	jd->jc = NULL;
 	g_free(jd);
 	gc->proto_data = NULL;
 }
@@ -1207,7 +1207,6 @@
 				if (here == 2) {
 					struct aim_user *u;
 					user = g_strdup(jid_full(j->user));
-					jab_stop(j);
 					regjconn = NULL;
 					gdk_input_remove(reginpa);
 					reginpa = 0;
@@ -1264,7 +1263,6 @@
 				} else {
 					do_error_dialog("Registration failed", "Jabber Registration");
 				}
-				jab_stop(j);
 				regjconn = NULL;
 				gdk_input_remove(reginpa);
 				xmlnode_free(p->x);