File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -740,10 +740,12 @@ ConnectingPrivate::StatePair ConnectingPrivate::make_pair<Interface::FORWARD>(In
740740template <Interface::Direction dir>
741741void ConnectingPrivate::newState (Interface::iterator it, Interface::UpdateFlags updated) {
742742 auto parent_pimpl = parent ()->pimpl ();
743+ // disable current interface to break loop (jumping back and forth between both interfaces)
744+ // this will be checked by notifyEnabled() below
743745 Interface::DisableNotify disable_source_interface (*pullInterface<dir>());
744746 if (updated) {
745747 if (updated.testFlag (Interface::STATUS) && // only perform these costly operations if needed
746- pullInterface<opposite<dir>()>()->notifyEnabled ()) // suppress recursive loop
748+ pullInterface<opposite<dir>()>()->notifyEnabled ()) // suppressing recursive loop?
747749 {
748750 // If status has changed, propagate the update to the opposite side
749751 auto status = it->priority ().status ();
You can’t perform that action at this time.
0 commit comments