changeset 6638:dbc3bdcc8861

[gaim-migrate @ 7163] This will make Gaim and jabberd2 get along a little better committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 27 Aug 2003 20:34:12 +0000
parents fe9c3b58afaf
children 1b91cb6be4c3
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }