From 982df22f2786e742cce3e1407cea967432cd4401 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 2 Mar 2017 21:48:06 +0100 Subject: [PATCH] Misc #476 --- ArchiSteamFarm/Bot.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index b61faecee..afd835f64 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -1457,6 +1457,7 @@ namespace ArchiSteamFarm { string authCode = Program.GetUserInput(ASF.EUserInputType.SteamGuard, BotName); if (string.IsNullOrEmpty(authCode)) { Stop(); + break; } SetUserInput(ASF.EUserInputType.SteamGuard, authCode); @@ -1466,6 +1467,7 @@ namespace ArchiSteamFarm { string twoFactorCode = Program.GetUserInput(ASF.EUserInputType.TwoFactorAuthentication, BotName); if (string.IsNullOrEmpty(twoFactorCode)) { Stop(); + break; } SetUserInput(ASF.EUserInputType.TwoFactorAuthentication, twoFactorCode); @@ -1505,7 +1507,7 @@ namespace ArchiSteamFarm { string steamParentalPIN = Program.GetUserInput(ASF.EUserInputType.SteamParentalPIN, BotName); if (string.IsNullOrEmpty(steamParentalPIN)) { Stop(); - return; + break; } SetUserInput(ASF.EUserInputType.SteamParentalPIN, steamParentalPIN); @@ -1513,7 +1515,7 @@ namespace ArchiSteamFarm { if (!await ArchiWebHandler.Init(callback.ClientSteamID, SteamClient.ConnectedUniverse, callback.WebAPIUserNonce, BotConfig.SteamParentalPIN).ConfigureAwait(false)) { if (!await RefreshSession().ConfigureAwait(false)) { - return; + break; } } @@ -3033,7 +3035,7 @@ namespace ArchiSteamFarm { private void SetUserInput(ASF.EUserInputType inputType, string inputValue) { if ((inputType == ASF.EUserInputType.Unknown) || string.IsNullOrEmpty(inputValue)) { - ArchiLogger.LogNullError(nameof(inputValue) + " || " + nameof(inputValue)); + ArchiLogger.LogNullError(nameof(inputType) + " || " + nameof(inputValue)); } // This switch should cover ONLY bot properties