Mercurial > pidgin.yaz
comparison src/connection.c @ 6507:c8e31153eea7
[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 <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 19 Aug 2003 21:09:56 +0000 |
parents | 70d5122bc3ff |
children | 6a34b7097149 |
comparison
equal
deleted
inserted
replaced
6506:b6f7fcafc908 | 6507:c8e31153eea7 |
---|---|
151 return; | 151 return; |
152 } | 152 } |
153 | 153 |
154 gaim_connection_set_state(gc, GAIM_CONNECTING); | 154 gaim_connection_set_state(gc, GAIM_CONNECTING); |
155 | 155 |
156 connections = g_list_append(connections, gc); | |
157 | |
156 gaim_signal_emit(gaim_connections_get_handle(), "signing-on", gc); | 158 gaim_signal_emit(gaim_connections_get_handle(), "signing-on", gc); |
157 | 159 |
158 gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n"); | 160 gaim_debug(GAIM_DEBUG_INFO, "connection", "Calling serv_login\n"); |
159 | |
160 connections = g_list_append(connections, gc); | |
161 | 161 |
162 serv_login(account); | 162 serv_login(account); |
163 } | 163 } |
164 | 164 |
165 void | 165 void |
186 | 186 |
187 gaim_signal_emit(gaim_connections_get_handle(), "signing-off", gc); | 187 gaim_signal_emit(gaim_connections_get_handle(), "signing-off", gc); |
188 | 188 |
189 serv_close(gc); | 189 serv_close(gc); |
190 | 190 |
191 gaim_connection_set_state(gc, GAIM_DISCONNECTED); | |
192 | |
193 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); | |
194 | |
191 connections = g_list_remove(connections, gc); | 195 connections = g_list_remove(connections, gc); |
192 | |
193 gaim_connection_set_state(gc, GAIM_DISCONNECTED); | |
194 | |
195 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); | |
196 | 196 |
197 system_log(log_signoff, gc, NULL, | 197 system_log(log_signoff, gc, NULL, |
198 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | 198 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); |
199 | 199 |
200 /* | 200 /* |