Permalink
Browse files

remove noisy comments

  • Loading branch information...
1 parent 5d8ebe2 commit c30b28f90ff9fc21549184af4a37713174b8573c @dwcares committed Sep 17, 2015
Showing with 5 additions and 2 deletions.
  1. +5 −2 app.js
View
@@ -102,8 +102,11 @@ io.on('connection', function(socket) {
socket.on('disconnect', function(msg) {
console.log(msg);
- console.log(socket.userId + ' disconnected');
- console.log(socket.gameId + ' disconnected');
+
+ if (socket && socket.userId && socket.gameId) {
+ console.log(socket.userId + ' disconnected');
+ console.log(socket.gameId + ' disconnected');
+ }
delete lobbyUsers[socket.userId];

0 comments on commit c30b28f

Please sign in to comment.