mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
Fixed a possible cause for infinite resource check loader
This commit is contained in:
parent
9c4c63a749
commit
1174d1ac10
1 changed files with 11 additions and 5 deletions
|
@ -285,11 +285,17 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
{
|
||||
dispatcher.Invoke(() =>
|
||||
{
|
||||
if (!t.IsFaulted && !t.IsCanceled)
|
||||
requiredarchives = t.Result;
|
||||
else requiredarchives = new List<string>();
|
||||
ApplyDefaultRequiredArchivesSetting();
|
||||
IsCheckingRequiredArchives = false;
|
||||
try
|
||||
{
|
||||
if (!t.IsFaulted && !t.IsCanceled)
|
||||
requiredarchives = t.Result;
|
||||
else requiredarchives = new List<string>();
|
||||
ApplyDefaultRequiredArchivesSetting();
|
||||
}
|
||||
finally
|
||||
{
|
||||
IsCheckingRequiredArchives = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue