diff options
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -204,7 +204,9 @@ io.sockets.on('connection', function (socket) { var now = Date.now(); updateTime(socket.user, now, socket.connected); socket.connected = now; - users[socket.user.id].active = false; + if (socket.user.id in users) { + users[socket.user.id].active = false; + } io.sockets.emit('blur', data); }); |
