src/connection.c

changeset 5615
2eb715cbbd9b
parent 5581
646cda748437
child 5622
3180ced42da4
equal deleted inserted replaced
5614:0cac63c743b1 5615:2eb715cbbd9b
113 g_return_if_fail(gaim_connection_get_state(gc) != GAIM_DISCONNECTED); 113 g_return_if_fail(gaim_connection_get_state(gc) != GAIM_DISCONNECTED);
114 114
115 if (gaim_connection_get_state(gc) != GAIM_CONNECTING) 115 if (gaim_connection_get_state(gc) != GAIM_CONNECTING)
116 gaim_blist_remove_account(gaim_connection_get_account(gc)); 116 gaim_blist_remove_account(gaim_connection_get_account(gc));
117 117
118 serv_close(gc);
119
120 gaim_connection_set_state(gc, GAIM_DISCONNECTED);
121
118 gaim_event_broadcast(event_signoff, gc); 122 gaim_event_broadcast(event_signoff, gc);
119 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); 123 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
120
121 serv_close(gc);
122
123 gaim_connection_set_state(gc, GAIM_DISCONNECTED);
124 124
125 /* XXX Evil UI stuff!! */ 125 /* XXX Evil UI stuff!! */
126 do_away_menu(); 126 do_away_menu();
127 do_proto_menu(); 127 do_proto_menu();
128 128

mercurial