ADD: ubdated stopping of the app
This commit is contained in:
Submodule libs/KubeControl updated: 894b2a08d6...d1024de907
@@ -77,7 +77,6 @@ namespace Entities
|
||||
Entity::~Entity()
|
||||
{
|
||||
stop();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -137,9 +136,13 @@ namespace Entities
|
||||
}
|
||||
|
||||
void Entity::stop()
|
||||
{
|
||||
|
||||
{
|
||||
LOG_S(INFO)<<"Child pods:" << PodController_->getListOfChildPods();
|
||||
PodController_->stopAllPods();
|
||||
LOG_S(INFO)<<"Child pods after stopping:" << PodController_->getListOfChildPods();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
|
||||
|
||||
LOG_S(INFO)<<"Pods stoppt";
|
||||
stopChild();
|
||||
LOG_S(INFO)<<"childs stoppt";
|
||||
@@ -304,6 +307,7 @@ namespace Entities
|
||||
case SimCore::SHUT_DOWN :
|
||||
{
|
||||
LOG_S(INFO)<<"shutdown received";
|
||||
|
||||
this->stop();
|
||||
}
|
||||
case SimCore::CREATE_ENTITY:
|
||||
|
||||
Reference in New Issue
Block a user