Try other servers if failing to get manifest from one.

pull/8/head
Nicholas Hastings 12 years ago
parent 2e5ebc8851
commit 1959262d4b

@ -470,7 +470,17 @@ namespace DepotDownloader
}
}
DepotManifest depotManifest = client.DownloadManifest(depot.manifestId);
DepotManifest depotManifest = null;
foreach (var server in cdnServers)
{
try
{
depotManifest = client.DownloadManifest(depot.manifestId);
break;
}
catch (WebException) { }
}
if ( depotManifest == null )
{
Console.WriteLine("\nUnable to download manifest {0} for depot {1}", depot.manifestId, depot.id);

Loading…
Cancel
Save