1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Reset things on connection loss

Remove the windows, clear tls certs, clean omemo.
Regards https://github.com/profanity-im/profanity/issues/1089
This commit is contained in:
Michael Vetter 2019-05-06 12:30:33 +02:00
parent 45ea73125f
commit 6ac73db876

View File

@ -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