Skip to content

Commit

Permalink
Merge pull request #357 from tavindev/master
Browse files Browse the repository at this point in the history
fix(#356): doPoll after setCookies only if polling is enabled
  • Loading branch information
DoctorMcKay authored Oct 5, 2024
2 parents 7d27ae1 + d9134fb commit c080cd4
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 c080cd4

Please sign in to comment.