5秒后启动测速

This commit is contained in:
陈国伟 2021-11-19 12:39:27 +08:00
parent 4b807991e5
commit 0ebc2953a7

View File

@ -41,6 +41,8 @@ namespace FastGithub.DomainResolve
try try
{ {
await this.dnscryptProxy.StartAsync(stoppingToken); await this.dnscryptProxy.StartAsync(stoppingToken);
await Task.Delay(TimeSpan.FromSeconds(5d), stoppingToken);
while (stoppingToken.IsCancellationRequested == false) while (stoppingToken.IsCancellationRequested == false)
{ {
await this.domainResolver.TestAllEndPointsAsync(stoppingToken); await this.domainResolver.TestAllEndPointsAsync(stoppingToken);