Fix SendTradePeriod not triggering

This got broken around V2.1.5.9, in f108829129 so almost 5 MONTHS ago, it's a miracle that nobody reported it yet, especially because old AcceptConfirmationsPeriod was also affected
This commit is contained in:
JustArchi
2017-02-19 12:32:34 +01:00
parent e9f55b2b0b
commit 8f26b17c9a

View File

@@ -219,6 +219,15 @@ namespace ArchiSteamFarm {
Statistics = new Statistics(this);
}
if ((BotConfig.SendTradePeriod > 0) && (BotConfig.SteamMasterID != 0)) {
SendItemsTimer = new Timer(
async e => await ResponseLoot(BotConfig.SteamMasterID).ConfigureAwait(false),
null,
TimeSpan.FromHours(BotConfig.SendTradePeriod) + TimeSpan.FromMinutes(Bots.Count), // Delay
TimeSpan.FromHours(BotConfig.SendTradePeriod) // Period
);
}
HeartBeatTimer = new Timer(
async e => await HeartBeat().ConfigureAwait(false),
null,