We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f557a49 + 8b1752f commit e8822f1Copy full SHA for e8822f1
ConnectX.Server/Services/PeerInfoService.cs
@@ -43,6 +43,16 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
43
var status = await zeroTierApiService.GetNetworkPeersAsync(stoppingToken);
44
peers = status?.ToImmutableList();
45
}
46
+ catch (TaskCanceledException e)
47
+ {
48
+ if (stoppingToken.IsCancellationRequested)
49
+ throw;
50
+
51
+ _logger.LogFailedToGetNetworkPeers(e);
52
53
+ await Task.Delay(1000, stoppingToken);
54
+ continue;
55
+ }
56
catch (HttpRequestException e)
57
{
58
_logger.LogFailedToGetNetworkPeers(e);
0 commit comments