From 10c7a9cfd7fe7001debb046e49191a0b819d9dbf Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Mon, 11 Mar 2019 01:01:53 +0100 Subject: [PATCH] prune UNKNOWN *and* PROPAGATE_BOTHWAYS If PropagatingEitherWay's interface is not met in *both* directions (but only one), in BOTHWAY mode, issue a warning. Otherwise handle both, AUTO and BOTHWAY mode, in the same fashion when resolving interfaces. TODO: move validateConnectivity() in StagePrivate. default action = default action from ContainerBase. PropagatingEitherWay: issue warning for case above --- core/src/container.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/container.cpp b/core/src/container.cpp index 91d956ef..ff8df82a 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -399,7 +399,7 @@ bool SerialContainerPrivate::connect(container_type::const_iterator cur) cur_impl->setPrevEnds((*prev)->pimpl()->ends()); // schedule stage with unknown interface for 2nd sweep - return required == UNKNOWN; + return required == UNKNOWN || required == PROPAGATE_BOTHWAYS; } /* Establishing the interface connections, we face a chicken-egg-problem: