Fix duplicate login bug

This commit is contained in:
calzoneman 2013-03-05 14:12:55 -06:00
parent fc27736017
commit 1a88c9e27e
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ User.prototype.initCallbacks = function() {
}.bind(this));
this.socket.on('login', function(data) {
if(this.name == "")
this.login(data.name, data.sha256);
}.bind(this));