Code review

This commit is contained in:
JustArchi
2016-04-01 20:18:21 +02:00
parent 6158a9268d
commit 12e32692cb
5 changed files with 47 additions and 53 deletions

View File

@@ -197,7 +197,7 @@ namespace ArchiSteamFarm {
CardsFarmer = new CardsFarmer(this);
Trading = new Trading(this);
if (BotConfig.AcceptConfirmationsPeriod > 0) {
if (AcceptConfirmationsTimer == null && BotConfig.AcceptConfirmationsPeriod > 0) {
AcceptConfirmationsTimer = new Timer(
async e => await AcceptConfirmations().ConfigureAwait(false),
null,
@@ -206,7 +206,7 @@ namespace ArchiSteamFarm {
);
}
if (BotConfig.SendTradePeriod > 0) {
if (SendItemsTimer == null && BotConfig.SendTradePeriod > 0) {
SendItemsTimer = new Timer(
async e => await ResponseSendTrade(BotConfig.SteamMasterID).ConfigureAwait(false),
null,