mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 20:09:12 +00:00
Compare commits
2 commits
a3a62e1d83
...
fe14f0a94c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fe14f0a94c | ||
![]() |
62ba0f4c23 |
2 changed files with 3 additions and 4 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ public abstract class UdpService
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
if (attempt == 1)
|
if (attempt == 1 && roundTripTime == TimeSpan.MaxValue)
|
||||||
{
|
{
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue