src/connection.c

changeset 5615
2eb715cbbd9b
parent 5581
646cda748437
child 5622
3180ced42da4
--- a/src/connection.c	Sat May 31 18:11:06 2003 +0000
+++ b/src/connection.c	Sat May 31 18:35:22 2003 +0000
@@ -115,13 +115,13 @@
 	if (gaim_connection_get_state(gc) != GAIM_CONNECTING)
 		gaim_blist_remove_account(gaim_connection_get_account(gc));
 
-	gaim_event_broadcast(event_signoff, gc);
-	system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
-
 	serv_close(gc);
 
 	gaim_connection_set_state(gc, GAIM_DISCONNECTED);
 
+	gaim_event_broadcast(event_signoff, gc);
+	system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
+
 	/* XXX Evil UI stuff!! */
 	do_away_menu();
 	do_proto_menu();

mercurial