Skip to content

Commit

Permalink
fix(#356): poll after setCookies only if polling is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tavindev committed Oct 4, 2024
1 parent 7d27ae1 commit d9134fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ TradeOfferManager.prototype.setCookies = function(cookies, familyViewPin, callba
}

clearTimeout(this._pollTimer);
this.doPoll();

if (this.pollInterval >= 0)
this.doPoll();

callback && callback();
};
Expand Down

0 comments on commit d9134fb

Please sign in to comment.