|
|
|
@ -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); |
|
|
|
|