From b0d5953164e1ec9eab5265b831857034c21fce3b Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 3 Nov 2024 01:49:02 -0400 Subject: [PATCH] shits broken --- client.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client.js b/client.js index 8ca52f5..a0d4762 100755 --- a/client.js +++ b/client.js @@ -405,7 +405,7 @@ async function handshake(name, password){ } }); - ws.on("error", function(code, reason)){ + ws.on("error", function(code, reason){ deek.emit("error", "code=" + code + " reason=" + reason); }); @@ -1114,20 +1114,14 @@ deek.on("close", function(channel){ console.log("It's over. Disconnected from websocket. Attempting reconnection in 10 seconds"); - setTimeout(function(){ - - fs.utimesSync(__filename, Date.now(), Date.now()); - }, 10000); + fs.utimesSync(__filename, Date.now(), Date.now()); }); deek.on("error", function(message){ console.error("Serber error: " + message + ". Attempting reconnection in 10 seconds"); - setTimeout(function(){ - - fs.utimesSync(__filename, Date.now(), Date.now()); - }, 10000); + fs.utimesSync(__filename, Date.now(), Date.now()); }); // connect to serber