Mercurial > pidgin.yaz
changeset 5622:70ae81fc802f
[gaim-migrate @ 6029]
Fixed one bug.. we don't really want a disconnected connection in the list.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 01:42:09 +0000 |
parents | f291874c418e |
children | 8c895d80159a |
files | src/connection.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/connection.c Sun Jun 01 01:35:16 2003 +0000 +++ b/src/connection.c Sun Jun 01 01:42:09 2003 +0000 @@ -65,8 +65,6 @@ if (gc->away_state != NULL) g_free(gc->away_state); - connections = g_list_remove(connections, gc); - g_free(gc); } @@ -119,13 +117,11 @@ gaim_connection_set_state(gc, GAIM_DISCONNECTED); + connections = g_list_remove(connections, gc); + 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(); - /* * XXX This is a hack! Remove this and replace it with a better event * notification system. @@ -141,6 +137,8 @@ update_privacy_connections(); + gaim_connection_destroy(gc); + /* XXX More UI stuff! */ if (connections != NULL) return;