Skip to content

Commit 3648db4

Browse files
committed
Never overwrite ARMED with PRUNED
1 parent 9d37495 commit 3648db4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/storage.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ bool InterfaceState::Priority::operator<(const InterfaceState::Priority& other)
8383
}
8484

8585
void InterfaceState::updatePriority(const InterfaceState::Priority& priority) {
86+
// Never overwrite ARMED with PRUNED: PRUNED => !ARMED
87+
assert(priority.status() != InterfaceState::Status::PRUNED || priority_.status() != InterfaceState::Status::ARMED);
88+
8689
if (owner()) {
8790
owner()->updatePriority(this, priority);
8891
} else {

0 commit comments

Comments
 (0)