Skip to content

Commit 6b8ab71

Browse files
Delete old timers
1 parent 0e1c71c commit 6b8ab71

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

boringtun/src/noise/timers.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,6 @@ impl Tunn {
278278
handshake_initiation_required = true;
279279
}
280280

281-
// Load timers only once:
282-
let session_established = self.timers[TimeSessionEstablished];
283-
let handshake_started = self.timers[TimeLastHandshakeStarted];
284-
let data_packet_received = self.timers[TimeLastDataPacketReceived];
285-
let data_packet_sent = self.timers[TimeLastDataPacketSent];
286-
let persistent_keepalive = self.timers.persistent_keepalive;
287-
288281
if self.handshake.is_expired() {
289282
return TunnResult::Err(WireGuardError::ConnectionExpired);
290283
}

0 commit comments

Comments
 (0)