mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Clear GamesToFarm on farming stopped
GamesToFarm is not used after farming has stopped, so this doesn't solve any bug or misbehaviour, but some plugin creators might prefer to have up-to-date state just in case.
This commit is contained in:
@@ -409,7 +409,10 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
|
||||
|
||||
if (NowFarming) {
|
||||
Bot.ArchiLogger.LogGenericError(Strings.WarningFailed);
|
||||
|
||||
NowFarming = false;
|
||||
|
||||
GamesToFarm.Clear();
|
||||
}
|
||||
|
||||
Bot.ArchiLogger.LogGenericInfo(Strings.IdlingStopped);
|
||||
@@ -799,6 +802,8 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
|
||||
|
||||
NowFarming = false;
|
||||
|
||||
GamesToFarm.Clear();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -832,6 +837,8 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
|
||||
} else {
|
||||
NowFarming = false;
|
||||
|
||||
GamesToFarm.Clear();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user