From 0ebc2953a77d777d7005f685a49004b3c777347f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Fri, 19 Nov 2021 12:39:27 +0800 Subject: [PATCH] =?UTF-8?q?5=E7=A7=92=E5=90=8E=E5=90=AF=E5=8A=A8=E6=B5=8B?= =?UTF-8?q?=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.DomainResolve/DomainResolveHostedService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FastGithub.DomainResolve/DomainResolveHostedService.cs b/FastGithub.DomainResolve/DomainResolveHostedService.cs index 4bc07fa..e2ca4e5 100644 --- a/FastGithub.DomainResolve/DomainResolveHostedService.cs +++ b/FastGithub.DomainResolve/DomainResolveHostedService.cs @@ -41,6 +41,8 @@ namespace FastGithub.DomainResolve try { await this.dnscryptProxy.StartAsync(stoppingToken); + await Task.Delay(TimeSpan.FromSeconds(5d), stoppingToken); + while (stoppingToken.IsCancellationRequested == false) { await this.domainResolver.TestAllEndPointsAsync(stoppingToken);