mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
error fix 2
This commit is contained in:
@@ -8,8 +8,7 @@ const port = 80;
|
|||||||
|
|
||||||
const wss = new WebSocket({ port: port }, () => console.log("XMPP started listening on port", port));
|
const wss = new WebSocket({ port: port }, () => console.log("XMPP started listening on port", port));
|
||||||
wss.on("error", (err) => {
|
wss.on("error", (err) => {
|
||||||
if (err.code == "EACCES") console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting on port", port);
|
console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting (NOTE: This should not affect LawinServer).");
|
||||||
else throw err;
|
|
||||||
})
|
})
|
||||||
|
|
||||||
global.Clients = [];
|
global.Clients = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user