Skip to content

Commit

Permalink
Merge pull request #79 from Markleford/patch-1
Browse files Browse the repository at this point in the history
Fix strict equality test in user.connected()
  • Loading branch information
Greg committed Apr 22, 2014
2 parents f63475c + f8cf797 commit 5ac8450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/cloak/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module.exports = (function() {
if (user !== undefined) {
socketIdToUserId[socket.id] = uid;
user._socket = socket;
delete user.disconnectedSince;
user.disconnectedSince = null;
cloak._setupHandlers(socket);
socket.emit('cloak-resumeResponse', {
valid: true,
Expand Down
1 change: 1 addition & 0 deletions src/server/cloak/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = (function() {
this.id = uuid.v4();
this._socket = socket;
this.name = 'Nameless User';
this.disconnectedSince = null;
}

User.prototype = {
Expand Down

0 comments on commit 5ac8450

Please sign in to comment.