diff src/connection.c @ 6533:6a34b7097149

[gaim-migrate @ 7050] Sometimes, when signals aren't emitted when you think they should be, it's because other parts of the program think they're being emitted when they are being emitted and not when you think they should be. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 21 Aug 2003 01:24:49 +0000
parents c8e31153eea7
children 800ef4a51096
line wrap: on
line diff
--- a/src/connection.c	Thu Aug 21 01:22:47 2003 +0000
+++ b/src/connection.c	Thu Aug 21 01:24:49 2003 +0000
@@ -188,12 +188,12 @@
 
 		serv_close(gc);
 
+		connections = g_list_remove(connections, gc);
+
 		gaim_connection_set_state(gc, GAIM_DISCONNECTED);
 
 		gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc);
 
-		connections = g_list_remove(connections, gc);
-
 		system_log(log_signoff, gc, NULL,
 				   OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);