Viacheslav Klimov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
application/src/main/java/org/thingsboard/server/actors/tenant/TenantActor.java
|
|
|
@ -130,6 +130,7 @@ public class TenantActor extends RuleChainManagerActor { |
|
|
|
log.info("[{}] Stopping tenant actor.", tenantId); |
|
|
|
if (cfActor != null) { |
|
|
|
ctx.stop(cfActor.getActorId()); |
|
|
|
cfActor = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -290,6 +291,7 @@ public class TenantActor extends RuleChainManagerActor { |
|
|
|
} else { |
|
|
|
if (cfActor != null) { |
|
|
|
ctx.stop(cfActor.getActorId()); |
|
|
|
cfActor = null; |
|
|
|
} |
|
|
|
if (ruleChainsInitialized) { |
|
|
|
log.info("Tenant {} is no longer managed by this service, stopping rule chains", tenantId); |
|
|
|
|