diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-05-06 12:30:33 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-05-06 12:30:33 +0200 |
commit | 6ac73db876c83c7068c4795b19c09ea59eb18a40 (patch) | |
tree | d6221d7629bedbbd21e6f19ba43c72be655d66cd /src | |
parent | 45ea73125ff9a05f239152215072fc9910ecb338 (diff) | |
download | profani-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.c | 5 |
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 |