diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs index d9c3f893f..fcabe1bbc 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SteamTokenDumperPlugin.cs @@ -262,6 +262,10 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { break; } + if (!bot.IsConnectedAndLoggedOn) { + return; + } + bot.ArchiLogger.LogGenericInfo($"Retrieving {appIDsThisRound.Count} app access tokens..."); SteamApps.PICSTokensCallback response; @@ -274,6 +278,12 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { return; } + if (response == null) { + bot.ArchiLogger.LogGenericWarning(string.Format(Strings.WarningFailedWithError, nameof(response))); + + return; + } + bot.ArchiLogger.LogGenericInfo($"Finished retrieving {appIDsThisRound.Count} app access tokens."); appIDsThisRound.Clear(); @@ -297,6 +307,10 @@ namespace ArchiSteamFarm.OfficialPlugins.SteamTokenDumper { break; } + if (!bot.IsConnectedAndLoggedOn) { + return; + } + bot.ArchiLogger.LogGenericInfo($"Retrieving {appIDsThisRound.Count} app infos..."); AsyncJobMultiple.ResultSet response;