Skip to content
Snippets Groups Projects
Commit 1174d1ac authored by ZZYZX's avatar ZZYZX
Browse files

Fixed a possible cause for infinite resource check loader

parent 9c4c63a7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment