set cf actor to null when stopped
This commit is contained in:
parent
eea7c2f623
commit
1760905b2e
@ -130,6 +130,7 @@ public class TenantActor extends RuleChainManagerActor {
|
|||||||
log.info("[{}] Stopping tenant actor.", tenantId);
|
log.info("[{}] Stopping tenant actor.", tenantId);
|
||||||
if (cfActor != null) {
|
if (cfActor != null) {
|
||||||
ctx.stop(cfActor.getActorId());
|
ctx.stop(cfActor.getActorId());
|
||||||
|
cfActor = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -290,6 +291,7 @@ public class TenantActor extends RuleChainManagerActor {
|
|||||||
} else {
|
} else {
|
||||||
if (cfActor != null) {
|
if (cfActor != null) {
|
||||||
ctx.stop(cfActor.getActorId());
|
ctx.stop(cfActor.getActorId());
|
||||||
|
cfActor = null;
|
||||||
}
|
}
|
||||||
if (ruleChainsInitialized) {
|
if (ruleChainsInitialized) {
|
||||||
log.info("Tenant {} is no longer managed by this service, stopping rule chains", tenantId);
|
log.info("Tenant {} is no longer managed by this service, stopping rule chains", tenantId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user