src/protocols/jabber/jabber.c

changeset 6638
a52bdae83933
parent 6623
75ba9eb9d3f8
child 6640
007eb21016b4
--- a/src/protocols/jabber/jabber.c	Wed Aug 27 06:15:14 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Wed Aug 27 20:34:12 2003 +0000
@@ -700,7 +700,8 @@
 			/* special case: name == stream:stream */
 			/* id attrib of stream is stored for digest auth */
 			gjc->sid = g_strdup(xmlnode_get_attrib(x, "id"));
-			/* STATE_EVT(JCONN_STATE_AUTH) */
+			gjc->state = JCONN_STATE_ON;
+			STATE_EVT(JCONN_STATE_ON);
 			xmlnode_free(x);
 		} else {
 			gjc->current = x;
@@ -789,9 +790,6 @@
 	gjab_send_raw(gjc, t);
 	xmlnode_free(x);
 
-	gjc->state = JCONN_STATE_ON;
-	STATE_EVT(JCONN_STATE_ON);
-
 	gc = GJ_GC(gjc);
 	gc->inpa = gaim_input_add(gjc->fd, GAIM_INPUT_READ, jabber_callback, gc);
 }

mercurial