From cb5d8b405bfe402f48bfefd4a9fa189e3370cc35 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 4 Jan 2023 11:02:26 +0800 Subject: [PATCH] fix bug --- v2rayN/v2rayN/Handler/SpeedtestHandler.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/v2rayN/v2rayN/Handler/SpeedtestHandler.cs b/v2rayN/v2rayN/Handler/SpeedtestHandler.cs index 7bff7067..6f3dbf3b 100644 --- a/v2rayN/v2rayN/Handler/SpeedtestHandler.cs +++ b/v2rayN/v2rayN/Handler/SpeedtestHandler.cs @@ -165,7 +165,6 @@ namespace v2rayN.Handler } private async Task RunSpeedTestAsync() { - string testIndexId = string.Empty; int pid = -1; pid = _coreHandler.LoadCoreConfigString(_config, _selecteds); @@ -181,8 +180,6 @@ namespace v2rayN.Handler var timeout = 10; foreach (var it in _selecteds) { - _ = LazyConfig.Instance.SetTestResult(it.indexId, "", "-1"); - UpdateFunc(it.indexId, "", ResUI.Speedtesting); if (!it.allowTest) { continue; @@ -191,7 +188,8 @@ namespace v2rayN.Handler { continue; } - testIndexId = it.indexId; + _ = LazyConfig.Instance.SetTestResult(it.indexId, "", "-1"); + UpdateFunc(it.indexId, "", ResUI.Speedtesting); var item = LazyConfig.Instance.GetProfileItem(it.indexId); if (item is null) continue;