Fixed bug in shutdown routine that was resulting in a seg fault on shutdown, for certain commands.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user