Only reset the polling timer if we have an interval set

This commit is contained in:
Alexander Corn 2015-12-02 22:38:51 -05:00
parent c4ea8eeb41
commit 0e34bceb1f

View File

@ -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) {