mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-06 07:30:09 +08:00
Only reset the polling timer if we have an interval set
This commit is contained in:
parent
c4ea8eeb41
commit
0e34bceb1f
@ -245,7 +245,9 @@ SteamCommunity.prototype.checkConfirmations = function() {
|
||||
});
|
||||
|
||||
function resetTimer() {
|
||||
self._confirmationTimer = setTimeout(self.checkConfirmations.bind(self), self._confirmationPollInterval);
|
||||
if(self._confirmationPollInterval) {
|
||||
self._confirmationTimer = setTimeout(self.checkConfirmations.bind(self), self._confirmationPollInterval);
|
||||
}
|
||||
}
|
||||
|
||||
function handleNewConfirmation(conf, handleNumber) {
|
||||
|
Loading…
Reference in New Issue
Block a user