mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added catch to ModListMetadataVM's needs download check
Was failing to calculate hash while file was locked during download
This commit is contained in:
parent
c584666a54
commit
a4a149d01c
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
@ -76,7 +76,17 @@ namespace Wabbajack
|
||||
_Exists = Observable.Interval(TimeSpan.FromSeconds(0.5))
|
||||
.Unit()
|
||||
.StartWith(Unit.Default)
|
||||
.Select(_ => !metadata.NeedsDownload(Location))
|
||||
.Select(_ =>
|
||||
{
|
||||
try
|
||||
{
|
||||
return !metadata.NeedsDownload(Location);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
})
|
||||
.ToProperty(this, nameof(Exists));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user