diff src/oscar.c @ 279:501e09c51cbc

[gaim-migrate @ 289] Updates to libfaim -> updates to gaim. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 29 May 2000 20:30:48 +0000
parents bba300ed4fab
children 918db59d3814
line wrap: on
line diff
--- a/src/oscar.c	Mon May 29 00:56:37 2000 +0000
+++ b/src/oscar.c	Mon May 29 20:30:48 2000 +0000
@@ -92,6 +92,10 @@
 
 	sess = g_new0(struct aim_session_t, 1);
 	aim_session_init(sess);
+	/* we need an immediate queue because we don't use a while-loop to
+	 * see if things need to be sent. */
+	sess->tx_enqueue = &aim_tx_enqueue__immediate;
+	gaim_sess = sess;
 
 	sprintf(buf, "Looking up %s", FAIM_LOGIN_SERVER);
 	set_login_progress(1, buf);
@@ -222,6 +226,7 @@
 		hide_login_progress("Could Not Connect");
 		return -1;
 	}
+	gaim_conn = bosconn;
 
 	aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_ACK, AIM_CB_ACK_ACK, NULL, 0);
 	aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, gaim_server_ready, 0);
@@ -320,9 +325,6 @@
 
 		aim_bos_reqservice(sess, command->conn, AIM_CONN_TYPE_CHATNAV);
 
-		gaim_sess = sess;
-		gaim_conn = command->conn;
-
 		debug_print("Roger that, all systems go\n");
 #ifdef USE_APPLET
 		make_buddy();