Commit 86c997c4 authored by nanahira's avatar nanahira

fix

parent 4b6452a1
Pipeline #42235 passed with stages
in 27 seconds
......@@ -486,9 +486,13 @@ let endUserPermit = function(query, res) {
let username = query.username;
let password = query.password;
let arena = query.arena;
const pool = pendingPlayerPool;
if (pool.has(username)) {
let info = pool.get(username);
let info = null;
if (pendingPlayerPool.has(username)) {
info = pendingPlayerPool.get(username);
} else if (playingPlayerPool.has(username)) {
info = playingPlayerPool.get(username);
}
if (info) {
if (password == info.password) {
// There is a bug. Should check if server is an array.
// But since now we have only one server for each arena..
......
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