Launch shutdown event also when there's nothing to farm

This commit is contained in:
JustArchi
2016-04-13 20:56:37 +02:00
parent 5e73d18cd2
commit fb350fe792

View File

@@ -94,6 +94,7 @@ namespace ArchiSteamFarm {
if (!await IsAnythingToFarm().ConfigureAwait(false)) {
Semaphore.Release(); // We have nothing to do, don't forget to release semaphore
Logging.LogGenericInfo("We don't have anything to farm on this account!", Bot.BotName);
await Bot.OnFarmingFinished(false).ConfigureAwait(false);
return;
}