Filter CDN server list to the two types of content servers we support: SteamCache and CDN.

pull/103/head DepotDownloader_2.3.5
Ryan Kistner 5 years ago
parent 9979cda684
commit 79c735fc49

@ -91,13 +91,13 @@ namespace DepotDownloader
{ {
var servers = await FetchBootstrapServerListAsync().ConfigureAwait(false); var servers = await FetchBootstrapServerListAsync().ConfigureAwait(false);
if (servers == null) if (servers == null || servers.Count == 0)
{ {
ExhaustedToken?.Cancel(); ExhaustedToken?.Cancel();
return; return;
} }
var weightedCdnServers = servers.Select(x => var weightedCdnServers = servers.Where(x => x.Type == "SteamCache" || x.Type == "CDN").Select(x =>
{ {
AccountSettingsStore.Instance.ContentServerPenalty.TryGetValue(x.Host, out var penalty); AccountSettingsStore.Instance.ContentServerPenalty.TryGetValue(x.Host, out var penalty);

Loading…
Cancel
Save