From cf4fc54dfdc03a6d3db81b6a8d35fa3fca0f2dc1 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Thu, 9 May 2024 20:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=98=A0=E5=B0=84=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=BA=E7=A9=BA=E6=97=B6=E4=B8=8D=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/port_mapping/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnt/src/port_mapping/mod.rs b/vnt/src/port_mapping/mod.rs index 9573311..52a71a5 100644 --- a/vnt/src/port_mapping/mod.rs +++ b/vnt/src/port_mapping/mod.rs @@ -63,6 +63,9 @@ pub fn start_port_mapping( stop_manager: StopManager, vec: Vec<(bool, SocketAddr, String)>, ) -> anyhow::Result<()> { + if vec.is_empty() { + return Ok(()); + } let runtime = tokio::runtime::Builder::new_multi_thread() .enable_all() .thread_name("portMapping")