From f5d359fded7c236feb94eb8cd6638a2151480b33 Mon Sep 17 00:00:00 2001 From: chao wan <1013448513@qq.com> Date: Fri, 5 Apr 2024 04:01:26 +0800 Subject: [PATCH] Improve --- v2rayN/v2rayN/Common/Utils.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/v2rayN/v2rayN/Common/Utils.cs b/v2rayN/v2rayN/Common/Utils.cs index 7dbbe6c0..38f41583 100644 --- a/v2rayN/v2rayN/Common/Utils.cs +++ b/v2rayN/v2rayN/Common/Utils.cs @@ -1186,6 +1186,7 @@ namespace v2rayN if (success && size == instanceIdSize && instanceId.ToString() == deviceInstanceId) { isRemoved = SetupAPI.SetupDiRemoveDevice(devs, ref devInfo); + break; } } SetupAPI.SetupDiDestroyDeviceInfoList(devs);