mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
Defer resolution of remote time promise to trigger bug
This commit is contained in:
parent
de122b91c2
commit
7ea695c99d
1421
src/plugins/persistence/couch/package-lock.json
generated
Normal file
1421
src/plugins/persistence/couch/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user