fixed unnecessary device actor init on rule-engine
This commit is contained in:
parent
8e4dd9c216
commit
bdc2fe4ee6
@ -261,7 +261,7 @@ public class TenantActor extends RuleChainManagerActor {
|
||||
edgeRpcService.updateEdge(tenantId, edge);
|
||||
}
|
||||
}
|
||||
if (msg.getEntityId().getEntityType() == EntityType.DEVICE && ComponentLifecycleEvent.DELETED == msg.getEvent()) {
|
||||
if (msg.getEntityId().getEntityType() == EntityType.DEVICE && ComponentLifecycleEvent.DELETED == msg.getEvent() && isMyPartition(msg.getEntityId())) {
|
||||
DeviceId deviceId = (DeviceId) msg.getEntityId();
|
||||
onToDeviceActorMsg(new DeviceDeleteMsg(tenantId, deviceId), true);
|
||||
deletedDevices.add(deviceId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user