Close windows on connection loss not general disc.

Call `ui_close_all_wins();` only if we disconnect on purpose not when
connection is lost.

Otherwise users might miss messages.

This partly reverts 6ac73db876.
Regards https://github.com/profanity-im/profanity/issues/1083
This commit is contained in:
Michael Vetter
2019-05-27 12:52:04 +02:00
parent eb16c674ae
commit bfa4a2ef1f
2 changed files with 1 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ cl_ev_disconnect(void)
cons_show("%s logged out successfully.", jidp->barejid);
jid_destroy(jidp);
ui_close_all_wins();
ev_disconnect_cleanup();
}