hopfully fix stopping mission worker

This commit is contained in:
2019-02-13 14:30:54 +01:00
parent df30afd073
commit 89ed8b2226
3 changed files with 8927 additions and 8929 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Wed Feb 13 2019 11:25:32 GMT+0100 (CET)*/ /*Generated on:Wed Feb 13 2019 14:30:53 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master"; var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime(); var da_lss_adis_time = new Date().getTime();
+6 -7
View File
@@ -1,4 +1,4 @@
/*Generated on:Wed Feb 13 2019 11:25:32 GMT+0100 (CET)*/ /*Generated on:Wed Feb 13 2019 14:30:53 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -17896,9 +17896,12 @@ class AutomaticDispose {
self.ReadAndAddMissions(); self.ReadAndAddMissions();
}, 500); }, 500);
setInterval(function () {
let self = this;
self.ADisSettings.runner.forEach((runner) => { self.ADisSettings.runner.forEach((runner) => {
self.OpenNextMission(runner) self.OpenNextMission(runner)
}) })
}.bind(self), 500);
} }
/** /**
@@ -19075,7 +19078,6 @@ class AutomaticDispose {
} else { } else {
$('#' + runnerIframe).attr("src", ''); $('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty'); $('#' + runnerIframe).attr("mission_id", 'empty');
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
} }
@@ -19142,17 +19144,14 @@ class AutomaticDispose {
// $('#' + runnerIframe).attr("mission_id", 'empty'); // $('#' + runnerIframe).attr("mission_id", 'empty');
// setTimeout(self.OpenNextMission.bind(self), 5000, Runner); // setTimeout(self.OpenNextMission.bind(self), 5000, Runner);
// }) // })
} else {
// only while
// setTimeout(self.OpenNextMission.bind(self), 5000, Runner);
} }
}); });
} else { } else {
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner); return ;//setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
}); });
} }
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner); return ;//setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
}); });
}); });
} }
+5 -6
View File
@@ -140,9 +140,12 @@ class AutomaticDispose {
self.ReadAndAddMissions(); self.ReadAndAddMissions();
}, 500); }, 500);
setInterval(function () {
let self = this;
self.ADisSettings.runner.forEach((runner) => { self.ADisSettings.runner.forEach((runner) => {
self.OpenNextMission(runner) self.OpenNextMission(runner)
}) })
}.bind(self), 500);
} }
/** /**
@@ -1085,7 +1088,6 @@ class AutomaticDispose {
} else { } else {
$('#' + runnerIframe).attr("src", ''); $('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty'); $('#' + runnerIframe).attr("mission_id", 'empty');
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
} }
@@ -1152,17 +1154,14 @@ class AutomaticDispose {
// $('#' + runnerIframe).attr("mission_id", 'empty'); // $('#' + runnerIframe).attr("mission_id", 'empty');
// setTimeout(self.OpenNextMission.bind(self), 5000, Runner); // setTimeout(self.OpenNextMission.bind(self), 5000, Runner);
// }) // })
} else {
// only while
// setTimeout(self.OpenNextMission.bind(self), 5000, Runner);
} }
}); });
} else { } else {
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner); return ;//setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
} }
}); });
} }
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner); return ;//setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
}); });
}); });
} }