diff --git a/js/Printer.js b/js/Printer.js index 0c15017..dbbfa87 100644 --- a/js/Printer.js +++ b/js/Printer.js @@ -267,5 +267,13 @@ function Printer() { self.state = newState; $(document).trigger(Printer.UPDATE); + + this.resetStatusCheckInterval(); + } + this.resetStatusCheckInterval = function() { + console.log("resetStatusCheckInterval"); + clearTimeout(self.checkStatusDelay); + clearTimeout(self.retryCheckStatusDelay); + self.checkStatusDelay = setTimeout(function() { self.checkStatus() }, self.checkStatusInterval); } } \ No newline at end of file