Defer resolution of remote time promise to trigger bug

This commit is contained in:
Andrew Henry 2024-09-20 13:28:31 -07:00
parent de122b91c2
commit 7ea695c99d
2 changed files with 1424 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -154,10 +154,12 @@ export default class RemoteClock extends DefaultClock {
const waitForInitialTick = (resolve) => {
if (this.lastTick > 0) {
const offsets = this.openmct.time.getClockOffsets();
// Don't ever resolve, this triggers the bug.
/*
resolve({
start: this.lastTick + offsets.start,
end: this.lastTick + offsets.end
});
});*/
} else {
setTimeout(() => waitForInitialTick(resolve), 100);
}