handle it better when the clock goes backwards

not sure why we need that but it doesn't hurt
This commit is contained in:
Matthias Wirth
2022-08-26 10:31:50 +02:00
parent 0324cb6d15
commit 702aa0b4f6

View File

@@ -260,9 +260,10 @@ function processReceiverUpdate(data, init) {
console.log('timestep backwards, ignoring data:' + now + ' -> ' + data.now);
if (backwardsCounter++ > 5) {
backwardsCounter = 0;
console.log('resetting now:' + now + ' -> ' + data.now);
console.log('resetting all data now:' + now + ' -> ' + data.now);
now = data.now;
last = now - 1;
reaper(1);
}
}
return;