about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/profanity.c b/src/profanity.c
index ab5f2285..0c4bc49e 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -68,7 +68,6 @@ profanity_run(void)
         inp[size++] = '\0';
         cmd_result = _process_input(inp);
     }
-
 }
 
 void
@@ -91,11 +90,10 @@ profanity_init(const int disable_tls, char *log_level)
 void
 profanity_shutdown_init(void)
 {
-    log_info("Profanity is shutting down.");
     gboolean wait_response = jabber_disconnect();
 
     if (wait_response) {
-        while (TRUE) {
+        while (jabber_connection_status() == JABBER_DISCONNECTING) {
             jabber_process_events();
         }
     }
@@ -109,7 +107,6 @@ profanity_shutdown(void)
     gui_close();                                                          
     chat_log_close();                                                    
     prefs_close();                                                       
-    log_info("Shutdown complete");                                       
     log_close();   
 }