From d9134fbb7034ece21a31483c28ffe019e29edd4c Mon Sep 17 00:00:00 2001 From: tavindev Date: Fri, 4 Oct 2024 21:29:53 +0100 Subject: [PATCH] fix(#356): poll after setCookies only if polling is enabled --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index e2978c6..c8bf04e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -249,7 +249,9 @@ TradeOfferManager.prototype.setCookies = function(cookies, familyViewPin, callba } clearTimeout(this._pollTimer); - this.doPoll(); + + if (this.pollInterval >= 0) + this.doPoll(); callback && callback(); };