Fixed bug with TargetController repeatedly trying to disconnect from the debug tool and/or target after a failed disconnect

This commit is contained in:
Nav
2021-09-21 21:14:19 +01:00
parent 1aa91a22dc
commit 2ef7fff79b

View File

@@ -135,6 +135,8 @@ void TargetController::shutdown() {
this->releaseHardware();
} catch (const std::exception& exception) {
this->target.reset();
this->debugTool.reset();
Logger::error("Failed to properly shutdown TargetController. Error: " + std::string(exception.what()));
}