From 0f7e0703d77c71cb3d389ddda546a18c84429a53 Mon Sep 17 00:00:00 2001 From: jsrobson10 Date: Fri, 12 Apr 2019 18:18:49 +1000 Subject: [PATCH] Fixed issue with client disconnection --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 6f481ac..61a2694 100644 --- a/main.js +++ b/main.js @@ -455,7 +455,7 @@ var server = net.createServer(function(socket) connections.push(sock); // Set on disconnect - sock.sock.on("disconnect", function() + sock.sock.on('close', function() { // Delete the connection id delete connections[sock.connection_id];