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);