From fda25abe8cf5dc4248f0900986e75dd5a1c1c8b3 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:34:57 +0300 Subject: [PATCH] Oops debugging didnt go as planned lol --- chatBot/includes/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index 26de967..2842096 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -21,8 +21,8 @@ class Client extends EventEmitter { this.swarm.on('update', () => { console.log(`Peers count: ${this.swarm.connections.size}`); - console.log([...this.swarm.connections]) - process.exit(-1); + console.log([...this.swarm.connections]); + if(this.swarm.connections.size > 0) process.exit(-1); }); }