mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user