Optimize ParseActiveTrades()

Never bother with checking trades if user didn't enable any trading preferences
This commit is contained in:
JustArchi
2016-10-21 21:03:01 +02:00
parent 00e5e7812c
commit 53b07fb1bb

View File

@@ -107,7 +107,7 @@ namespace ArchiSteamFarm {
}
private async Task ParseActiveTrades() {
if (string.IsNullOrEmpty(Bot.BotConfig.SteamApiKey)) {
if ((Bot.BotConfig.TradingPreferences == BotConfig.ETradingPreferences.None) || string.IsNullOrEmpty(Bot.BotConfig.SteamApiKey)) {
return;
}