From 8a437b709c148d947804f3ff18c2ae0794ca06d0 Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sun, 10 Jul 2022 01:44:40 +0100 Subject: [PATCH] error fix 2 --- structure/xmpp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/structure/xmpp.js b/structure/xmpp.js index 2145bfc..e8d8139 100644 --- a/structure/xmpp.js +++ b/structure/xmpp.js @@ -8,8 +8,7 @@ const port = 80; const wss = new WebSocket({ port: port }, () => console.log("XMPP started listening on port", port)); wss.on("error", (err) => { - if (err.code == "EACCES") console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting on port", port); - else throw err; + console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting (NOTE: This should not affect LawinServer)."); }) global.Clients = [];