Compare commits

..

1 commit

Author SHA1 Message Date
DHR60
b4d7af37b8
Merge a3a62e1d83 into a1490d0ac1 2025-10-12 10:01:44 +08:00
2 changed files with 4 additions and 3 deletions

View file

@ -242,7 +242,8 @@ public class SpeedtestService(Config config, Func<SpeedTestResult, Task> updateF
} }
//Retest the failed part //Retest the failed part
if (lstFailed.Count > 0) var pageSizeNext = pageSize / 2;
if (lstFailed.Count > 0 && pageSizeNext > 0)
{ {
if (_lstExitLoop.Any(p => p == exitLoopKey) == false) if (_lstExitLoop.Any(p => p == exitLoopKey) == false)
{ {
@ -252,7 +253,7 @@ public class SpeedtestService(Config config, Func<SpeedTestResult, Task> updateF
await UpdateFunc("", string.Format(ResUI.SpeedtestingTestFailedPart, lstFailed.Count)); await UpdateFunc("", string.Format(ResUI.SpeedtestingTestFailedPart, lstFailed.Count));
await RunUdpTestAsync(lstFailed, exitLoopKey); await RunUdpTestBatchAsync(lstFailed, exitLoopKey, pageSizeNext);
} }
} }

View file

@ -94,7 +94,7 @@ public abstract class UdpService
} }
catch catch
{ {
if (attempt == 1 && roundTripTime == TimeSpan.MaxValue) if (attempt == 1)
{ {
throw; throw;
} }