about summary refs log tree commit diff stats
path: root/src/event/common.c
Commit message (Collapse)AuthorAgeFilesLines
* Cancel autoping timer on disconnect or connection lossDmitry Podgorny2019-06-031-0/+1
| | | | | | | | | If Profanity is disconnected in any way before ping response is received, the autoping timer will expire after the next connection is established. As result, user will be disconnected immediately. Cancel autoping timer in ev_disconnect_cleanup(), so it is done for all kind of disconnections.
* Close windows on connection loss not general disc.Michael Vetter2019-05-271-1/+0
| | | | | | | | | | Call `ui_close_all_wins();` only if we disconnect on purpose not when connection is lost. Otherwise users might miss messages. This partly reverts 6ac73db876c83c7068c4795b19c09ea59eb18a40. Regards https://github.com/profanity-im/profanity/issues/1083
* Create seperate function for disconnect cleanupMichael Vetter2019-05-191-0/+68
Duplicate code in client_events.c and server_events.c. Let's have events/common.c and a function containing that code.