mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-25 18:47:57 +01:00
reset the status check when printer state is overruled
This commit is contained in:
parent
1df94100f3
commit
9ab36d999e
@ -267,5 +267,13 @@ function Printer() {
|
|||||||
self.state = newState;
|
self.state = newState;
|
||||||
|
|
||||||
$(document).trigger(Printer.UPDATE);
|
$(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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user