From 7ca2bc5776213828a31c7fc237784a0a73c6f759 Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 7 Feb 2025 19:45:05 +0100 Subject: [PATCH] Removed double sockets. --- src/snek/static/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snek/static/app.js b/src/snek/static/app.js index a35f153..2f3e610 100644 --- a/src/snek/static/app.js +++ b/src/snek/static/app.js @@ -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."); });