Fixed regression for better accommodation of TargetController lazy loading
This commit is contained in:
@@ -323,6 +323,10 @@ void Application::startTargetController() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Application::stopTargetController() {
|
void Application::stopTargetController() {
|
||||||
|
if (this->targetController == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto targetControllerState = this->targetController->getThreadState();
|
auto targetControllerState = this->targetController->getThreadState();
|
||||||
if (targetControllerState == ThreadState::STARTING || targetControllerState == ThreadState::READY) {
|
if (targetControllerState == ThreadState::STARTING || targetControllerState == ThreadState::READY) {
|
||||||
this->eventManager.triggerEvent(std::make_shared<Events::ShutdownTargetController>());
|
this->eventManager.triggerEvent(std::make_shared<Events::ShutdownTargetController>());
|
||||||
|
|||||||
Reference in New Issue
Block a user