From 1174d1ac10da74a164f4d54235c13f591c78e6cf Mon Sep 17 00:00:00 2001 From: ZZYZX <zzyzx@virtual> Date: Sun, 25 Sep 2022 20:41:19 +0300 Subject: [PATCH] Fixed a possible cause for infinite resource check loader --- Source/Core/Windows/ResourceOptionsForm.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Source/Core/Windows/ResourceOptionsForm.cs b/Source/Core/Windows/ResourceOptionsForm.cs index 6b97e406c..d37db1ad3 100755 --- a/Source/Core/Windows/ResourceOptionsForm.cs +++ b/Source/Core/Windows/ResourceOptionsForm.cs @@ -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; + } }); }); } -- GitLab