mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 11:59:13 +00:00
Fix
This commit is contained in:
parent
62ba0f4c23
commit
fe14f0a94c
1 changed files with 2 additions and 3 deletions
|
@ -242,8 +242,7 @@ public class SpeedtestService(Config config, Func<SpeedTestResult, Task> updateF
|
||||||
}
|
}
|
||||||
|
|
||||||
//Retest the failed part
|
//Retest the failed part
|
||||||
var pageSizeNext = pageSize / 2;
|
if (lstFailed.Count > 0)
|
||||||
if (lstFailed.Count > 0 && pageSizeNext > 0)
|
|
||||||
{
|
{
|
||||||
if (_lstExitLoop.Any(p => p == exitLoopKey) == false)
|
if (_lstExitLoop.Any(p => p == exitLoopKey) == false)
|
||||||
{
|
{
|
||||||
|
@ -253,7 +252,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 RunUdpTestBatchAsync(lstFailed, exitLoopKey, pageSizeNext);
|
await RunUdpTestAsync(lstFailed, exitLoopKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue