mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-10 05:34:25 +00:00
Clean unused code
It seems this call is pointless, if trade check timer is not null, it's already running, as we never initialize it without enabling it too.
This commit is contained in:
@@ -3583,10 +3583,6 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
||||
|
||||
break;
|
||||
case UserNotificationsCallback.EUserNotification.Trading when newNotification && !BotConfig.BotBehaviour.HasFlag(BotConfig.EBotBehaviour.DisableIncomingTradesParsing):
|
||||
if ((TradeCheckTimer != null) && (BotConfig.TradeCheckPeriod > 0)) {
|
||||
TradeCheckTimer.Change(TimeSpan.FromMinutes(BotConfig.TradeCheckPeriod), TimeSpan.FromMinutes(BotConfig.TradeCheckPeriod));
|
||||
}
|
||||
|
||||
Utilities.InBackground(Trading.OnNewTrade);
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user