about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-05-06 12:30:33 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-05-06 12:30:33 +0200
commit6ac73db876c83c7068c4795b19c09ea59eb18a40 (patch)
treed6221d7629bedbbd21e6f19ba43c72be655d66cd /src
parent45ea73125ff9a05f239152215072fc9910ecb338 (diff)
downloadprofani-tty-6ac73db876c83c7068c4795b19c09ea59eb18a40.tar.gz
Reset things on connection loss
Remove the windows, clear tls certs, clean omemo.
Regards https://github.com/profanity-im/profanity/issues/1089
Diffstat (limited to 'src')
-rw-r--r--src/event/server_events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 4644cc8c..5ad6ab4f 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -215,10 +215,15 @@ sv_ev_lost_connection(void)
     muc_confserver_clear();
     chat_sessions_clear();
     ui_disconnected();
+    ui_close_all_wins();
     roster_destroy();
+    tlscerts_clear_current();
 #ifdef HAVE_LIBGPGME
     p_gpg_on_disconnect();
 #endif
+#ifdef HAVE_LIBGPGME
+    omemo_on_disconnect();
+#endif
 }
 
 void