mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 11:59:13 +00:00
Compare commits
3 commits
b4d7af37b8
...
c5acb5fad4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c5acb5fad4 | ||
![]() |
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
|
||||
var pageSizeNext = pageSize / 2;
|
||||
if (lstFailed.Count > 0 && pageSizeNext > 0)
|
||||
if (lstFailed.Count > 0)
|
||||
{
|
||||
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 RunUdpTestBatchAsync(lstFailed, exitLoopKey, pageSizeNext);
|
||||
await RunUdpTestAsync(lstFailed, exitLoopKey);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ public abstract class UdpService
|
|||
}
|
||||
catch
|
||||
{
|
||||
if (attempt == 1)
|
||||
if (attempt == 1 && roundTripTime == TimeSpan.MaxValue)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue