Fixed issue with client disconnection

This commit is contained in:
jsrobson10 2019-04-12 18:18:49 +10:00
parent ed526ff3c4
commit 0f7e0703d7
1 changed files with 1 additions and 1 deletions

View File

@ -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];