Fixed bug in shutdown routine that was resulting in a seg fault on shutdown, for certain commands.

This commit is contained in:
Nav
2021-06-23 04:34:00 +01:00
parent 7d44232e0c
commit c794eada28

View File

@@ -227,7 +227,9 @@ void Application::shutdown() {
this->stopDebugServer();
this->stopTargetController();
if (this->signalHandler.getThreadState() != ThreadState::STOPPED) {
if (this->signalHandler.getThreadState() != ThreadState::STOPPED
&& this->signalHandler.getThreadState() != ThreadState::UNINITIALISED
) {
// Signal handler is still running
this->signalHandler.triggerShutdown();