diff options
author | James Booth <boothj5@gmail.com> | 2012-10-27 18:26:57 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-27 18:26:57 +0100 |
commit | 847850742c55876676e22e6b7918361dfe086145 (patch) | |
tree | 3be011012faa8f8bc57f92a713d398d0d3982a6b /src/profanity.c | |
parent | d658915740d8681db8ce61bf65aa4647f8007993 (diff) | |
download | profani-tty-847850742c55876676e22e6b7918361dfe086145.tar.gz |
Refactored disconnect
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/profanity.c b/src/profanity.c index 22144376..261410ff 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -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(); |