1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Incoming iq stanza - Reset the autoping timer

A autoping is to make sure that there is still a connection between server and
client. If the application receives incoming stanza, the connection is fine.
There is no need to wait for response, if there are other incomings.

Issue: #1333 and #1315
This commit is contained in:
DebXWoody 2020-05-23 06:40:49 +02:00
parent 86f0e0ea70
commit 3cd3bced70
No known key found for this signature in database
GPG Key ID: C2DC916F35751C24

View File

@ -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);