Removed double sockets.

This commit is contained in:
retoor 2025-02-07 19:45:05 +01:00
parent 9840c8eb03
commit 7ca2bc5776

View File

@ -247,6 +247,8 @@ class Socket extends EventHandler {
console.info("Connection lost. Reconnecting.");
this.isConnected = false;
this.isConnecting = false;
this.ws.close();
this.ws = null;
this.ensureConnection().then(() => {
console.info("Reconnected.");
});