Enforce manifest request codes

pull/321/head
Ryan Kistner 4 years ago
parent 4acc41fe92
commit 75dc09fb0a

@ -879,12 +879,11 @@ namespace DepotDownloader
// This code will hopefully be valid for one period following the issuing period // This code will hopefully be valid for one period following the issuing period
manifestRequestCodeExpiration = now.Add(TimeSpan.FromMinutes(5)); manifestRequestCodeExpiration = now.Add(TimeSpan.FromMinutes(5));
// This will likely be a fatal error once the manifest code is enforced // If we could not get the manifest code, this is a fatal error
if (manifestRequestCode == 0) if (manifestRequestCode == 0)
{ {
DebugLog.WriteLine("ContentDownloader", Console.WriteLine("No manifest request code was returned for {0} {1}", depot.id, depot.manifestId);
"No manifest request code was returned for {0} {1}", cts.Cancel();
depot.id, depot.manifestId);
} }
} }
@ -905,7 +904,7 @@ namespace DepotDownloader
} }
catch (TaskCanceledException) catch (TaskCanceledException)
{ {
Console.WriteLine("Connection timeout downloading depot manifest {0} {1}", depot.id, depot.manifestId); Console.WriteLine("Connection timeout downloading depot manifest {0} {1}. Retrying.", depot.id, depot.manifestId);
} }
catch (SteamKitWebRequestException e) catch (SteamKitWebRequestException e)
{ {

Loading…
Cancel
Save