Seg fault bug fix

This commit is contained in:
Nav
2024-12-08 23:33:14 +00:00
parent 3afcb65f31
commit c15eba5ca9

View File

@@ -303,7 +303,7 @@ namespace TargetController
// Reject any commands still waiting in the queue
this->processQueuedCommands();
if (this->target != nullptr) {
if (this->target != nullptr && this->targetState != nullptr) {
// Cleanup before deactivating the target
try {
this->stopTarget();