mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #957 from wabbajack-tools/fix-inferencer
Don't re-hash files during compilation
This commit is contained in:
commit
145b5b01f3
@ -126,9 +126,18 @@ using Wabbajack.Lib.Downloaders;
|
||||
var client = await GetClient();
|
||||
var results = await client.GetJsonAsync<Archive[]>($"{Consts.WabbajackBuildServerUri}mod_files/by_hash/{hash.ToHex()}");
|
||||
|
||||
await DownloadDispatcher.PrepareAll(results.Select(r => r.State));
|
||||
foreach (var result in results)
|
||||
{
|
||||
if (await result.State.Verify(result)) return result.State;
|
||||
try
|
||||
{
|
||||
if (await result.State.Verify(result)) return result.State;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Utils.Log($"Verification error for failed for inferenced archive {result.State.PrimaryKeyString}");
|
||||
Utils.Log(ex.ToString());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user