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:
Łukasz Domeradzki
2025-08-09 03:22:48 +02:00
parent c412a47139
commit d79db74385

View File

@@ -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;