diff --git a/smocore/body/body.cpp b/smocore/body/body.cpp index 48ac9bf..d260e2f 100644 --- a/smocore/body/body.cpp +++ b/smocore/body/body.cpp @@ -93,7 +93,6 @@ public: smo::AsynchronousLoop &results ) { - parent.bodyComponentInitialized = true; std::cout << "Mrntt: attached " << results.nSucceeded << " of " << results.nTotal << " sense devices." << "\n"; @@ -172,14 +171,6 @@ void Body::finalizeReq(bodyLifetimeMgmtOpCbFn callback) + ": Must be invoked by Mrntt thread"); } - if (!parent.bodyComponentInitialized) - { - std::cout << "Mrntt: Body component not initialized. " - << "Skipping finalization." << "\n"; - callback(true); - return; - } - auto request = std::make_shared( parent, mrntt, callback); diff --git a/smocore/include/mind.h b/smocore/include/mind.h index 14c7f4f..a865c6e 100644 --- a/smocore/include/mind.h +++ b/smocore/include/mind.h @@ -77,8 +77,7 @@ private: * This flag ensures that JOLTing happens exactly once and provides * a synchronization point for the entire system initialization. */ - bool threadsHaveBeenJolted = false, - bodyComponentInitialized = false; + bool threadsHaveBeenJolted = false; private: class MindLifetimeMgmtOp;