Ignore TargetReset event in Insight, if target execution has resumed since the event was triggered

This commit is contained in:
Nav
2022-05-02 18:56:17 +01:00
parent 9b2537553d
commit fad9ac3e5a

View File

@@ -122,6 +122,10 @@ namespace Bloom
void InsightWorker::onTargetResetEvent(const Events::TargetReset& event) {
try {
if (this->targetControllerConsole.getTargetState() != TargetState::STOPPED) {
return;
}
this->lastTargetState = TargetState::STOPPED;
emit this->targetStateUpdated(TargetState::RUNNING);
emit this->targetStateUpdated(TargetState::STOPPED);