diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2019-06-03 13:04:04 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2019-06-03 13:28:00 +0300 |
commit | 6138a5f79be3e5f1c36f94accf7b836ca23a1bc6 (patch) | |
tree | 3c10d9e1ac9206b452417b4287ef69142a9eee2e /tests/unittests/xmpp | |
parent | 5b4277840a9822945ccdb552a0a56cc3a62c49f3 (diff) | |
download | profani-tty-6138a5f79be3e5f1c36f94accf7b836ca23a1bc6.tar.gz |
Cancel autoping timer on disconnect or connection loss
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.
Diffstat (limited to 'tests/unittests/xmpp')
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index df862b9b..41870d73 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -206,6 +206,7 @@ void iq_room_role_set(const char * const room, const char * const nick, char *ro const char * const reason) {} void iq_room_role_list(const char * const room, char *role) {} void iq_last_activity_request(gchar *jid) {} +void iq_autoping_timer_cancel(void) {} void iq_autoping_check(void) {} void iq_rooms_cache_clear(void) {} void iq_command_list(const char *const target) {} |