about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-27 18:26:57 +0100
committerJames Booth <boothj5@gmail.com>2012-10-27 18:26:57 +0100
commit847850742c55876676e22e6b7918361dfe086145 (patch)
tree3be011012faa8f8bc57f92a713d398d0d3982a6b /src/profanity.c
parentd658915740d8681db8ce61bf65aa4647f8007993 (diff)
downloadprofani-tty-847850742c55876676e22e6b7918361dfe086145.tar.gz
Refactored disconnect
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c10
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();