Revert "ToRevert: Extra debug"

This reverts commit 1fe3fcdfd4.
This commit is contained in:
JustArchi
2017-03-05 18:14:51 +01:00
parent 1fe3fcdfd4
commit fa520b8202
2 changed files with 1 additions and 10 deletions

View File

@@ -732,13 +732,11 @@ namespace ArchiSteamFarm {
if (!IsPlayingPossible) {
ArchiLogger.LogGenericInfo(Strings.BotAccountOccupied);
PlayingWasBlocked = true;
ArchiLogger.LogGenericDebug("PlayingWasBlocked: " + PlayingWasBlocked);
StopFamilySharingInactivityTimer();
return;
}
ArchiLogger.LogGenericInfo(Strings.BotAccountFree);
ArchiLogger.LogGenericDebug("PlayingWasBlocked: " + PlayingWasBlocked);
PlayingWasBlocked = false;
CardsFarmer.Resume(false);
}
@@ -1435,13 +1433,9 @@ namespace ArchiSteamFarm {
}
// We trigger OnNewGameAdded() anyway, as CardsFarmer has other things to handle regardless of being Paused or not
ArchiLogger.LogGenericDebug("PlayingWasBlocked: " + PlayingWasBlocked);
if (PlayingWasBlocked) {
ArchiLogger.LogGenericDebug("Waiting");
await Task.Delay(60 * 1000).ConfigureAwait(false);
ArchiLogger.LogGenericDebug("End of wait");
PlayingWasBlocked = false;
ArchiLogger.LogGenericDebug("PlayingWasBlocked: " + PlayingWasBlocked);
}
await CardsFarmer.OnNewGameAdded().ConfigureAwait(false);

View File

@@ -27,7 +27,6 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
@@ -152,13 +151,11 @@ namespace ArchiSteamFarm {
internal void SetInitialState(bool paused) => StickyPause = Paused = paused;
internal async Task StartFarming([CallerMemberName] string previousMethodName = null) {
internal async Task StartFarming() {
if (NowFarming || Paused || !Bot.IsPlayingPossible) {
return;
}
Bot.ArchiLogger.LogGenericDebug("Called from " + previousMethodName + " and running!");
if (!Bot.CanReceiveSteamCards) {
await Bot.OnFarmingFinished(false).ConfigureAwait(false);
return;