mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 17:03:43 +02:00
Clean reported remote endpoints in service method.
This commit is contained in:
parent
409a897c22
commit
624f2e2946
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ impl<SI: SystemInterface> Peer<SI> {
|
|||
paths.retain(|p| ((time_ticks - p.last_receive_time_ticks) < PEER_EXPIRATION_TIME) && (p.path.strong_count() > 0));
|
||||
prioritize_paths(&mut paths);
|
||||
}
|
||||
self.reported_local_endpoints.lock().retain(|_, ts| (time_ticks - *ts) < PEER_EXPIRATION_TIME);
|
||||
(time_ticks - self.last_receive_time_ticks.load(Ordering::Relaxed).max(self.create_time_ticks)) < PEER_EXPIRATION_TIME
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue