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:
Łukasz Domeradzki
2024-04-03 00:32:59 +02:00
parent e69c5a0138
commit 2b794becff

View File

@@ -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;
}
}