diff options
author | defanor <defanor@uberspace.net> | 2023-08-09 09:39:13 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-08-09 09:39:13 +0300 |
commit | 116c8f7c3a092d192b44ba6eea53566eceb656b9 (patch) | |
tree | 1476a0a36dc1d64249c567fedf6eccd76f1a398d /src/rexmpp.rs | |
parent | 832e2554aa2fbecefed3239be110f1b31e4fafd5 (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.rs')
-rw-r--r-- | src/rexmpp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rexmpp.rs b/src/rexmpp.rs index bf09183..92b6fa0 100644 --- a/src/rexmpp.rs +++ b/src/rexmpp.rs @@ -200,7 +200,7 @@ pub struct Rexmpp { // Server ping configuration and state pub ping_delay: c_int, pub ping_requested: c_int, - pub last_network_activity: time_t, + pub last_network_activity: timespec, // DNS-related structures pub resolver: *mut c_void, |