Refactored disconnect

This commit is contained in:
James Booth
2012-10-27 18:26:57 +01:00
parent d658915740
commit 847850742c
4 changed files with 16 additions and 33 deletions

View File

@@ -292,15 +292,7 @@ _init(const int disable_tls, char *log_level)
static void
_shutdown(void)
{
gboolean wait_response = jabber_disconnect();
if (wait_response) {
while (jabber_get_connection_status() == JABBER_DISCONNECTING) {
jabber_process_events();
}
jabber_free_resources();
}
jabber_disconnect();
contact_list_clear();
gui_close();
chat_log_close();