mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 13:42:24 +00:00
Update SpeedtestService.cs
AI-optimized code
This commit is contained in:
parent
7e8b405555
commit
c374b8565b
1 changed files with 3 additions and 4 deletions
|
@ -141,8 +141,7 @@ namespace ServiceLib.Services
|
|||
}
|
||||
}));
|
||||
}
|
||||
Task.WaitAll([.. tasks]);
|
||||
await Task.CompletedTask;
|
||||
await Task.WhenAll(tasks);
|
||||
}
|
||||
|
||||
private async Task RunRealPingBatchAsync(List<ServerTestItem> lstSelected, string exitLoopKey, int pageSize = 0)
|
||||
|
@ -216,7 +215,7 @@ namespace ServiceLib.Services
|
|||
await DoRealPing(downloadHandle, it);
|
||||
}));
|
||||
}
|
||||
Task.WaitAll(tasks.ToArray());
|
||||
await Task.WhenAll(tasks);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -291,7 +290,7 @@ namespace ServiceLib.Services
|
|||
}
|
||||
}));
|
||||
}
|
||||
Task.WaitAll(tasks.ToArray());
|
||||
await Task.WhenAll(tasks);
|
||||
}
|
||||
|
||||
private async Task<int> DoRealPing(DownloadService downloadHandle, ServerTestItem it)
|
||||
|
|
Loading…
Reference in a new issue