Commit 0178e6e8 authored by 不如归去's avatar 不如归去 Committed by GitHub

But do they really exist?

parent 6240b2ea
...@@ -281,9 +281,10 @@ let closedUser = function (res, pool) { ...@@ -281,9 +281,10 @@ let closedUser = function (res, pool) {
// 当 srvpro 通知本服务器游戏已正常结束时 // 当 srvpro 通知本服务器游戏已正常结束时
let finishUser = function (json) { let finishUser = function (json) {
let userA = decodeURIComponent(json.usernameA); let userA = json.usernameA ? decodeURIComponent(json.usernameA) : undefiend;
let userB = decodeURIComponent(json.usernameB); let userB = json.usernameB ? decodeURIComponent(json.usernameB) : undefined;
for (let user of [userA, userB]) { for (let user of [userA, userB]) {
if (!user) continue;
if (!playingPlayerPool.delete(user)) if (!playingPlayerPool.delete(user))
localLog("Unknown player left the game: " + user); localLog("Unknown player left the game: " + user);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment