mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Improve race condition handling with Patch generation
This commit is contained in:
parent
cda2a5f54c
commit
d8500fd618
@ -832,10 +832,8 @@ namespace Wabbajack.Common
|
||||
{
|
||||
if (File.Exists(cacheFile))
|
||||
{
|
||||
using (var f = File.OpenRead(cacheFile))
|
||||
{
|
||||
await f.CopyToAsync(output);
|
||||
}
|
||||
await using var f = File.OpenRead(cacheFile);
|
||||
await f.CopyToAsync(output);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -854,6 +852,8 @@ namespace Wabbajack.Common
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
if (File.Exists(cacheFile))
|
||||
continue;
|
||||
await Task.Delay(1000);
|
||||
goto RETRY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user