diff --git a/src/main.rs b/src/main.rs index c4e65c0..96533c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -473,7 +473,7 @@ impl State { let mut peer_vec = self .peers .iter() - .filter(|(_, info)| now < info.last_seen + TIMEOUT.as_secs() && info.endpoint.is_some()) + .filter(|(_, info)| info.last_seen != u64::MAX && now < info.last_seen + TIMEOUT.as_secs() && info.endpoint.is_some()) .map(|(_, info)| (info.gossip_ip, info.gossip_prio)) .collect::>(); peer_vec.sort_by_key(|(_, prio)| *prio);