fix ContainerBasePrivate::copyState(): don't copy (again) on update

This commit is contained in:
Robert Haschke 2018-03-13 13:24:46 +01:00
parent b3af170663
commit 862ac37cd6

View File

@ -98,7 +98,9 @@ bool ContainerBasePrivate::compute()
}
void ContainerBasePrivate::copyState(Interface::iterator external, const InterfacePtr& target, bool updated) {
// TODO need to update existing mapping?
// TODO: update internal's prio from external's new priority
if (updated)
return;
// create a clone of external state within target interface (child's starts() or ends())
InterfaceState& internal = *target->clone(*external);