Seg fault bug fix
This commit is contained in:
@@ -303,7 +303,7 @@ namespace TargetController
|
|||||||
// Reject any commands still waiting in the queue
|
// Reject any commands still waiting in the queue
|
||||||
this->processQueuedCommands();
|
this->processQueuedCommands();
|
||||||
|
|
||||||
if (this->target != nullptr) {
|
if (this->target != nullptr && this->targetState != nullptr) {
|
||||||
// Cleanup before deactivating the target
|
// Cleanup before deactivating the target
|
||||||
try {
|
try {
|
||||||
this->stopTarget();
|
this->stopTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user