From 27ae9a89da964b348bdd5a7da4146473b5f52bbd Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Mon, 4 Sep 2023 20:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=B7=AF=E7=94=B1=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=97=B6=E7=9A=84=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/channel/channel.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vnt/src/channel/channel.rs b/vnt/src/channel/channel.rs index e90a83c..df821c6 100644 --- a/vnt/src/channel/channel.rs +++ b/vnt/src/channel/channel.rs @@ -168,6 +168,10 @@ impl Context { } let route = v.value()[0]; drop(v); + if route.rt == 199 { + //这通常是刚加入路由,直接放弃使用,避免抖动 + return Err(io::Error::new(io::ErrorKind::NotFound, "route not found")); + } if !route.is_p2p() { if let Some(time) = self.inner.route_table_time.get(&(route.route_key(), *id)) { //借道传输时,长时间不通信的通道不使用