@@ -95,6 +95,9 @@ function CMD.login(uid, fd)
-- 分配游戏服节点/agent
local gameNode, gameAgent = nodeUtil:user_dispatch_game_node_and_agent(uid)
log.info("login uid[%s] gameNode[%s] gameAgent[%s]", tostring(uid), tostring(gameNode), tostring(gameAgent))
+ if is_empty(gameNode) or is_empty(gameAgent) then
+ return false
+ end
session = {
fd = fd,