Add guard to detect zombies, somehow the event occurs to not be handled
@@ -9800,10 +9800,19 @@ void DeRestPlugin::idleTimerFired()
LightNode *lightNode = &d->nodes[d->lightIter];
d->lightIter++;
- if (!lightNode->isAvailable() || !lightNode->lastRx().isValid())
+ if (!lightNode->isAvailable() || !lightNode->lastRx().isValid() || !lightNode->node())
+ {
+ continue;
+ }
+
+ if (lightNode->node()->isZombie())
+ { // handle here if not detected earlier TODO merge
+ d->nodeZombieStateChanged(lightNode->node());
+ if (!lightNode->isAvailable())
{
continue;
}
+ }
if (processLights)
{
