# HG changeset patch # User Ethan Blanton # Date 1061327396 0 # Node ID c8e31153eea7c1d77655df25a9be528a1c4e509d # Parent b6f7fcafc908cfd9cb4883cc5387bcf8a89d9ced [gaim-migrate @ 7024] Moved signing-on and signed-off emissions such that the gc is not yet removed from the list of valid connections when they occur. committer: Tailor Script diff -r b6f7fcafc908 -r c8e31153eea7 src/connection.c --- a/src/connection.c Tue Aug 19 20:43:11 2003 +0000 +++ b/src/connection.c Tue Aug 19 21:09:56 2003 +0000 @@ -153,12 +153,12 @@ gaim_connection_set_state(gc, GAIM_CONNECTING); + connections = g_list_append(connections, gc); + gaim_signal_emit(gaim_connections_get_handle(), "signing-on", gc); gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n"); - connections = g_list_append(connections, gc); - serv_login(account); } @@ -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);