diff --git a/v2rayN/ServiceLib/Services/SpeedtestService.cs b/v2rayN/ServiceLib/Services/SpeedtestService.cs index d5f10871..c1a7de38 100644 --- a/v2rayN/ServiceLib/Services/SpeedtestService.cs +++ b/v2rayN/ServiceLib/Services/SpeedtestService.cs @@ -210,6 +210,7 @@ public class SpeedtestService(Config config, Func updateF var parallelOptions = new ParallelOptions { + MaxDegreeOfParallelism = lst.Count, CancellationToken = ct, }; @@ -291,6 +292,7 @@ public class SpeedtestService(Config config, Func updateF var parallelOptions = new ParallelOptions { + MaxDegreeOfParallelism = selecteds.Count, CancellationToken = ct, }; @@ -381,6 +383,7 @@ public class SpeedtestService(Config config, Func updateF var parallelOptions = new ParallelOptions { + MaxDegreeOfParallelism = selecteds.Count, CancellationToken = ct, }; @@ -570,6 +573,10 @@ public class SpeedtestService(Config config, Func updateF await clientSocket.ConnectAsync(endPoint, linkedCts.Token).ConfigureAwait(false); responseTime = (int)timer.ElapsedMilliseconds; } + catch + { + // Ignore + } finally { timer.Stop();