Update server.js

user list bug fix
This commit is contained in:
Metin Seylan 2016-05-11 13:23:27 +03:00
parent 4652f6eec0
commit 4200fd3799

View file

@ -54,6 +54,7 @@ io.on('connection', function (client) {
if(index!=-1){ if(index!=-1){
delete users[index]; delete users[index];
} }
users = users.filter(Boolean)
io.emit('users', users); io.emit('users', users);