v2 up dua8
This commit is contained in:
@@ -1064,7 +1064,7 @@ class AutomaticDispose {
|
||||
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
||||
$('#' + runnerIframe).attr("src", '');
|
||||
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||
setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
||||
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||
}
|
||||
|
||||
UpdateMissionsToDone(MissionID) {
|
||||
@@ -1109,17 +1109,17 @@ class AutomaticDispose {
|
||||
available: 'true',
|
||||
done: 'false'
|
||||
})
|
||||
if (self.MyRunner != "kt") {
|
||||
//if (self.MyRunner != "kt") {
|
||||
coll = coll.and(function (item) {
|
||||
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
||||
});
|
||||
}
|
||||
//}
|
||||
|
||||
return coll.toArray()
|
||||
}
|
||||
}).then((Wunsche) => {
|
||||
if (typeof Wunsche === "undefined") {
|
||||
return setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
||||
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||
}
|
||||
Wunsche.sort((a, b) => {
|
||||
return a.next_check - b.next_check;
|
||||
@@ -1207,7 +1207,9 @@ class AutomaticDispose {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((mywunsch) => {
|
||||
self.MissionData = mywunsch;
|
||||
return self.MainHandler()
|
||||
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||
return self.MainHandler()
|
||||
});
|
||||
});
|
||||
} else {
|
||||
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||
@@ -1225,7 +1227,7 @@ class AutomaticDispose {
|
||||
})
|
||||
})
|
||||
}
|
||||
}, 1500);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user