This commit is contained in:
v4hn 2021-09-01 16:05:25 +02:00 committed by Michael Görner
parent d0ab3c3703
commit 3b9f6ee519

View File

@ -716,6 +716,7 @@ void ConnectingPrivate::newState(Interface::iterator it, bool updated) {
// remove all pending pairs involving this state
pending.remove_if([it](const StatePair& p) { return std::get<opposite<other>()>(p) == it; });
else
// TODO(v4hn): If a state becomes reenabled, this skips all previously removed pairs, right?
pending.sort();
} else { // new state: insert all pairs with other interface
assert(it->priority().enabled()); // new solutions are feasible, aren't they?