From 91d164c4a625b191e7bad22dc0aa92f7ef2f9e47 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 8 Sep 2018 21:14:46 -0500 Subject: [PATCH] Ensured multiple errors wouldn't be output for the same problem --- IPA.Loader/Updating/ModsaberML/Updater.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/IPA.Loader/Updating/ModsaberML/Updater.cs b/IPA.Loader/Updating/ModsaberML/Updater.cs index d6719c38..c41fad84 100644 --- a/IPA.Loader/Updating/ModsaberML/Updater.cs +++ b/IPA.Loader/Updating/ModsaberML/Updater.cs @@ -62,6 +62,8 @@ namespace IPA.Updating.ModsaberML public bool Has { get; set; } = false; public HashSet Consumers { get; set; } = new HashSet(); + public bool MetaRequestFailed { get; set; } = false; + public BSPluginMeta LocalPluginMeta { get; set; } = null; public override string ToString() @@ -169,6 +171,7 @@ namespace IPA.Updating.ModsaberML { Logger.updater.Error($"Error getting info for {dep.Name}"); Logger.updater.Error(e); + dep.MetaRequestFailed = true; continue; } @@ -234,6 +237,12 @@ namespace IPA.Updating.ModsaberML { dep.Has = dep.Version != null;// dep.Version is only not null if its already installed + if (dep.MetaRequestFailed) + { + Logger.updater.Warn($"{dep.Name} info request failed, not trying again"); + continue; + } + var dict = new Ref>(null); yield return GetGameVersionMap(dep.Name, dict); try { dict.Verify(); }