mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user