summaryrefslogtreecommitdiff
path: root/src/rexmpp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-08-09 09:39:13 +0300
committerdefanor <defanor@uberspace.net>2023-08-09 09:39:13 +0300
commit116c8f7c3a092d192b44ba6eea53566eceb656b9 (patch)
tree1476a0a36dc1d64249c567fedf6eccd76f1a398d /src/rexmpp.h
parent832e2554aa2fbecefed3239be110f1b31e4fafd5 (diff)
Fix pinging
It was broken since commit 938963c1d1c6a9b929d28a90030332d4f397ca61, since seconds from monotonic clocks were compared to calendar ones. Now last_network_activity is a timespec, using monotonic clocks as well.
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r--src/rexmpp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h
index dec03dc..8211886 100644
--- a/src/rexmpp.h
+++ b/src/rexmpp.h
@@ -333,7 +333,7 @@ struct rexmpp
/* Server ping configuration and state. */
int ping_delay;
int ping_requested;
- time_t last_network_activity;
+ struct timespec last_network_activity;
/* DNS-related structures. */
rexmpp_dns_ctx_t resolver;