Fix a typo and an undefined variable case
This commit is contained in:
parent
5c9c096209
commit
324fa6c81a
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ function handleConnection(sock) {
|
|||
|
||||
Logger.syslog.log("Accepted socket from " + ip);
|
||||
var user = new User(sock);
|
||||
if (sock.handshake.user) {
|
||||
if (sock.handshake && sock.handshake.user) {
|
||||
user.name = sock.handshake.user.name;
|
||||
user.global_rank = sock.handshake.user.global_rank;
|
||||
user.loggedIn = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue