Fix cluster disconnect not working (#7352)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Sebastian Malton authored and Gabriel committed 2023-03-21 09:07:59 +01:00
1 parent 92f0df3be4
commit 0bbfa392d7
1 file changed
+2 -2
@@ -118,7 +118,7 @@ class ClusterConnection {
this.bindEvents();
}
if (this.cluster.disconnected || !this.cluster.accessible.get()) {
if (this.cluster.disconnected.get() || !this.cluster.accessible.get()) {
try {
this.dependencies.broadcastConnectionUpdate({
level: "info",
@@ -184,7 +184,7 @@ class ClusterConnection {
}
disconnect() {
if (this.cluster.disconnected) {
if (this.cluster.disconnected.get()) {
return this.dependencies.logger.debug("[CLUSTER]: already disconnected", { id: this.cluster.id });
}