mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Skip first shutdown in ShutdownOnFarmingFinished, #229
This commit is contained in:
@@ -68,7 +68,7 @@ namespace ArchiSteamFarm {
|
||||
|
||||
internal bool KeepRunning { get; private set; }
|
||||
|
||||
private bool InvalidPassword, LoggedInElsewhere, FirstTradeSent;
|
||||
private bool InvalidPassword, LoggedInElsewhere, FirstTradeSent, SkipFirstShutdown;
|
||||
private string AuthCode, TwoFactorCode;
|
||||
|
||||
internal static async Task RefreshCMs(uint cellID) {
|
||||
@@ -320,7 +320,11 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
if (BotConfig.ShutdownOnFarmingFinished) {
|
||||
Stop();
|
||||
if (SkipFirstShutdown) {
|
||||
SkipFirstShutdown = false;
|
||||
} else {
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1130,6 +1134,7 @@ namespace ArchiSteamFarm {
|
||||
return "That bot instance is already running!";
|
||||
}
|
||||
|
||||
SkipFirstShutdown = true;
|
||||
await Start().ConfigureAwait(false);
|
||||
return "Done!";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user