equal to pull request now

This commit is contained in:
Robin Müller 2020-06-23 01:15:35 +02:00
parent 847292ea30
commit f7d55a8a37

View File

@ -89,10 +89,11 @@ ReturnValue_t PeriodicTask::addComponent(object_id_t object, bool setTaskIF) {
"it implement ExecutableObjectIF" << std::endl; "it implement ExecutableObjectIF" << std::endl;
return HasReturnvaluesIF::RETURN_FAILED; return HasReturnvaluesIF::RETURN_FAILED;
} }
objectList.push_back(newObject);
if(setTaskIF) { if(setTaskIF) {
newObject->setTaskIF(this); newObject->setTaskIF(this);
} }
objectList.push_back(newObject);
return HasReturnvaluesIF::RETURN_OK; return HasReturnvaluesIF::RETURN_OK;
} }