about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-29 10:21:51 +0200
committerGitHub <noreply@github.com>2020-05-29 10:21:51 +0200
commit8d9cbef1e3e1e15468f9001a5c7762b110efc9b8 (patch)
treedee2c61a2b61defcb520baec62604a5b910c191f /src/xmpp
parent4c047b0cb5f1ca9b3f404a82e2ca031097d3994d (diff)
parent3cd3bced7086fbad511ece9e5c58d52fc49455e9 (diff)
downloadprofani-tty-8d9cbef1e3e1e15468f9001a5c7762b110efc9b8.tar.gz
Merge pull request #1343 from DebXWoody/bugfix/1333
Incoming iq stanza - Reset the autoping timer
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 8c373f77..75bd73a1 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -159,6 +159,8 @@ _iq_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const us
 {
     log_debug("iq stanza handler fired");
 
+    iq_autoping_timer_cancel(); // reset the autoping timer
+
     char *text;
     size_t text_size;
     xmpp_stanza_to_text(stanza, &text, &text_size);