Fixed bug with TargetController repeatedly trying to disconnect from the debug tool and/or target after a failed disconnect
This commit is contained in:
@@ -135,6 +135,8 @@ void TargetController::shutdown() {
|
|||||||
this->releaseHardware();
|
this->releaseHardware();
|
||||||
|
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception& exception) {
|
||||||
|
this->target.reset();
|
||||||
|
this->debugTool.reset();
|
||||||
Logger::error("Failed to properly shutdown TargetController. Error: " + std::string(exception.what()));
|
Logger::error("Failed to properly shutdown TargetController. Error: " + std::string(exception.what()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user