Browse Source

Ignore ComponentLifecycleMsg for non-managed tenants

pull/10157/head
ViacheslavKlimov 3 years ago
parent
commit
4319024eed
  1. 2
      application/src/main/java/org/thingsboard/server/actors/tenant/TenantActor.java

2
application/src/main/java/org/thingsboard/server/actors/tenant/TenantActor.java

@ -284,7 +284,7 @@ public class TenantActor extends RuleChainManagerActor {
onToDeviceActorMsg(new DeviceDeleteMsg(tenantId, deviceId), true);
deletedDevices.add(deviceId);
}
if (isRuleEngine) {
if (isRuleEngine && ruleChainsInitialized) {
TbActorRef target = getEntityActorRef(msg.getEntityId());
if (target != null) {
if (msg.getEntityId().getEntityType() == EntityType.RULE_CHAIN) {

Loading…
Cancel
Save