Skip to content

Commit

Permalink
[WARP-578] - Fix race between handshake and peer removal
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrasnov committed Jun 16, 2020
1 parent e45cf84 commit f8068c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/noise/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ impl Tunn {

(time, tx_bytes, rx_bytes, loss, rtt)
}

pub fn is_expired(&self) -> bool {
self.handshake.lock().is_expired()
}
}

#[inline(always)]
Expand Down

0 comments on commit f8068c5

Please sign in to comment.