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

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