Removed unnecessary blocking operation (which was running on the main thread)

This commit is contained in:
Nav
2023-02-27 01:53:24 +00:00
parent 7a74a5ec93
commit e3a45886cf

View File

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