From e8f4737e81126d36f30a87077615cbf0fd90071b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Mon, 12 May 2025 21:31:30 +0200 Subject: [PATCH] Misc --- .../SteamTokenDumperPlugin.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs index 6d400608b..574a61374 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs @@ -459,15 +459,11 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC // Consider fetching main appID key only if we've actually considered some new depots for resolving if (shouldFetchMainKey && (knownDepotIDs?.Contains(app.ID) != true) && GlobalCache.ShouldRefreshDepotKey(app.ID)) { - depotKeysTotal++; - await depotsRateLimitingSemaphore.WaitAsync().ConfigureAwait(false); try { SteamApps.DepotKeyCallback depotResponse = await bot.SteamApps.GetDepotDecryptionKey(app.ID, app.ID).ToLongRunningTask().ConfigureAwait(false); - depotKeysSuccessful++; - GlobalCache.UpdateDepotKey(depotResponse); } catch (Exception e) { // We can still try other depots @@ -488,6 +484,11 @@ internal sealed class SteamTokenDumperPlugin : OfficialPlugin, IASF, IBot, IBotC bot.ArchiLogger.LogGenericInfo(Strings.FormatBotFinishedRetrievingDepotKeys(depotKeysSuccessful, depotKeysTotal)); } + if (depotKeysSuccessful < depotKeysTotal) { + // We're not going to record app change numbers, as we didn't fetch all the depot keys we wanted + continue; + } + GlobalCache.UpdateAppChangeNumbers(appChangeNumbers); }