diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-03 21:49:08 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-12-03 21:49:08 +0100 |
commit | 5a7f762d6ce6b5bbdbd10f5966adc909597f37d6 (patch) | |
tree | b53fa0c1ee02c1e211d6cf94c6ba0334135ec42e /src/wireguard/timers.rs | |
parent | Close socket fd after getmtu ioctl (diff) | |
download | wireguard-rs-5a7f762d6ce6b5bbdbd10f5966adc909597f37d6.tar.xz wireguard-rs-5a7f762d6ce6b5bbdbd10f5966adc909597f37d6.zip |
Moving away from peer threads
Diffstat (limited to 'src/wireguard/timers.rs')
-rw-r--r-- | src/wireguard/timers.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wireguard/timers.rs b/src/wireguard/timers.rs index 0ce4210..e1aabad 100644 --- a/src/wireguard/timers.rs +++ b/src/wireguard/timers.rs @@ -137,6 +137,7 @@ impl<T: tun::Tun, B: udp::UDP> PeerInner<T, B> { pub fn timers_handshake_complete(&self) { let timers = self.timers(); if timers.enabled { + timers.retransmit_handshake.stop(); timers.handshake_attempts.store(0, Ordering::SeqCst); timers.sent_lastminute_handshake.store(false, Ordering::SeqCst); *self.walltime_last_handshake.lock() = Some(SystemTime::now()); |