diff --git a/html/index.html b/html/index.html index 14ee134..1a35ef9 100644 --- a/html/index.html +++ b/html/index.html @@ -14,13 +14,13 @@
- - + +
- - - + + +
diff --git a/html/lastloc.lua b/html/old/lastloc.lua similarity index 100% rename from html/lastloc.lua rename to html/old/lastloc.lua diff --git a/html/ws2.lua b/html/old/ws2.lua similarity index 100% rename from html/ws2.lua rename to html/old/ws2.lua diff --git a/html/static/engine.js b/html/static/engine.js index 18b5a2c..2d44f56 100644 --- a/html/static/engine.js +++ b/html/static/engine.js @@ -150,6 +150,9 @@ function update() { function ping() { try { + if (socket.readyState > 1) { + throw "closed socket"; + } socket.send("ping") } catch (err) { console.log(err);