summaryrefslogtreecommitdiffstats
path: root/src/wireguard/timers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard/timers.rs')
-rw-r--r--src/wireguard/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard/timers.rs b/src/wireguard/timers.rs
index bfd2583..5eb69dc 100644
--- a/src/wireguard/timers.rs
+++ b/src/wireguard/timers.rs
@@ -139,7 +139,7 @@ impl<T: tun::Tun, B: bind::Bind> PeerInner<T, B> {
if timers.enabled {
timers.handshake_attempts.store(0, Ordering::SeqCst);
timers.sent_lastminute_handshake.store(false, Ordering::SeqCst);
- *self.walltime_last_handshake.lock() = SystemTime::now();
+ *self.walltime_last_handshake.lock() = Some(SystemTime::now());
}
}