Update heartbeat_handler.rs

This commit is contained in:
lbl8603
2023-01-05 11:44:38 +08:00
committed by GitHub
parent fa3fed3fbd
commit 49350933c3
+1 -1
View File
@@ -36,7 +36,7 @@ pub fn handle_loop(udp: UdpSocket, server_addr: SocketAddr) -> Result<()> {
let _ = udp.send_to(net_packet.buffer(), route.address);
} else {
DIRECT_ROUTE_TABLE.remove_if(&virtual_ip, |_, route| {
current_time - route.recv_time <= MAX_INTERVAL
current_time - route.recv_time > MAX_INTERVAL
});
}
}