This commit is contained in:
JustArchi
2019-10-20 21:36:27 +02:00
parent 55a0a7cfdb
commit b4ed859bcb
4 changed files with 132 additions and 17 deletions

View File

@@ -982,9 +982,14 @@ namespace ArchiSteamFarm {
if (BotConfig.ShutdownOnFarmingFinished) {
Stop();
}
await PluginsCore.OnBotFarmingFinished(this, farmedSomething).ConfigureAwait(false);
}
internal async Task OnFarmingStopped() => await ResetGamesPlayed().ConfigureAwait(false);
internal async Task OnFarmingStopped() {
await ResetGamesPlayed().ConfigureAwait(false);
await PluginsCore.OnBotFarmingStopped(this).ConfigureAwait(false);
}
internal async Task<bool> RefreshSession() {
if (!IsConnectedAndLoggedOn) {