From 54da8ac71fec5c64aac127a4a12446ddb2119e6d Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sat, 2 Mar 2024 23:14:16 +0800 Subject: [PATCH] =?UTF-8?q?[mio]=20=E5=88=A4=E6=96=AD=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/ip_proxy/udp_proxy.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnt/src/ip_proxy/udp_proxy.rs b/vnt/src/ip_proxy/udp_proxy.rs index 2ee2cd1..8fa4e35 100644 --- a/vnt/src/ip_proxy/udp_proxy.rs +++ b/vnt/src/ip_proxy/udp_proxy.rs @@ -130,6 +130,9 @@ fn udp_proxy( return Err(e); } } + if stop_manager.is_stop() { + return Ok(()); + } for event in events.iter() { match event.token() { SERVER => server_handle( @@ -141,9 +144,6 @@ fn udp_proxy( &mut buf, ), NOTIFY => { - if stop_manager.is_stop() { - return Ok(()); - } check = true; } token => {