mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 05:38:12 +00:00
[Persistence] Break promise cycle
Break cyclical dependency in Promises that was causing persistence to fall into an unresolvable state after overwrite, WTD-1033.
This commit is contained in:
@ -18,8 +18,12 @@ define(
|
||||
function persist(failure) {
|
||||
var decoratedPersistence =
|
||||
failure.domainObject.getCapability('persistence');
|
||||
return decoratedPersistence &&
|
||||
decoratedPersistence.persist();
|
||||
// Note that we issue the persist request here, but don't
|
||||
// return it. We trust that the PersistenceQueue will
|
||||
// behave correctly on the next round of flushing.
|
||||
if (decoratedPersistence) {
|
||||
decoratedPersistence.persist();
|
||||
}
|
||||
}
|
||||
|
||||
// Retry persistence (overwrite) for this set of failed attempts
|
||||
|
Reference in New Issue
Block a user