Removed unnecessary blocking operation (which was running on the main thread)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user