1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix cluster disconnect not working (#7352)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-03-14 09:45:27 -04:00 committed by GitHub
parent 85268bf12b
commit 21352b3c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ class ClusterConnection {
this.bindEvents(); this.bindEvents();
} }
if (this.cluster.disconnected || !this.cluster.accessible.get()) { if (this.cluster.disconnected.get() || !this.cluster.accessible.get()) {
try { try {
this.dependencies.broadcastConnectionUpdate({ this.dependencies.broadcastConnectionUpdate({
level: "info", level: "info",
@ -184,7 +184,7 @@ class ClusterConnection {
} }
disconnect() { disconnect() {
if (this.cluster.disconnected) { if (this.cluster.disconnected.get()) {
return this.dependencies.logger.debug("[CLUSTER]: already disconnected", { id: this.cluster.id }); return this.dependencies.logger.debug("[CLUSTER]: already disconnected", { id: this.cluster.id });
} }