0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 01:07:56 +01:00

Retry preheat also if request failed

This commit is contained in:
peteruithoven 2013-12-23 17:38:10 +01:00
parent 2d8c385e02
commit d50a42ef09

View File

@ -95,7 +95,7 @@ function Printer() {
timeout: this.timeoutTime,
success: function(data){
console.log("Printer:preheat response: ",data);
if(data.status == "error") {
if(data.status != "success") {
clearTimeout(self.retryPreheatDelay);
self.retryPreheatDelay = setTimeout(function() { self.preheat() },self.retryDelay); // retry after delay
}