1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1090 from jubalh/fix/connection-loss-1089

Reset things on connection loss
This commit is contained in:
Michael Vetter 2019-05-06 16:06:41 +02:00 committed by GitHub
commit 9ecc14c95d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,10 +215,15 @@ sv_ev_lost_connection(void)
muc_confserver_clear(); muc_confserver_clear();
chat_sessions_clear(); chat_sessions_clear();
ui_disconnected(); ui_disconnected();
ui_close_all_wins();
roster_destroy(); roster_destroy();
tlscerts_clear_current();
#ifdef HAVE_LIBGPGME #ifdef HAVE_LIBGPGME
p_gpg_on_disconnect(); p_gpg_on_disconnect();
#endif #endif
#ifdef HAVE_LIBGPGME
omemo_on_disconnect();
#endif
} }
void void