Commit 6240b2ea authored by 不如归去's avatar 不如归去 Committed by GitHub

Fix

parent 7d1abf01
......@@ -323,6 +323,8 @@ let matchResponse = function(req, res) {
if (!username || !password) {
throw 'auth';
}
res.username = username;
res.password = password;
// 检定是否掉线重连
if (playingPlayerPool.has(username)) {
switch (config.match.reconnect) {
......@@ -340,8 +342,6 @@ let matchResponse = function(req, res) {
let arg = url.parse(req.url, true).query;
if (!arg.arena) arg.arena = 'entertain';
localLog(username + ' apply for a ' + arg.arena + ' match.');
res.username = username;
res.password = password;
// 选择匹配池
let pool = null;
if (arg.arena == 'athletic')
......
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