Double the slack period to prevent rewinding on-demand channels when it is a bit late.

This commit is contained in:
vexorian 2021-09-19 16:57:56 -04:00
parent 670b9a015d
commit 1e2336d627

View File

@ -197,7 +197,9 @@ class OnDemandService
} else {
let o = (tm - pm);
startTime = startTime - o;
if (o >= SLACK) {
//It looks like it is convenient to make the on-demand a bit more lenient SLACK-wise tha
//other parts of the schedule process. So SLACK*2 instead of just SLACK
if (o >= SLACK*2) {
startTime += onDemand.modulo;
}
}