Sfoglia il codice sorgente

修复玩家game节点分配

neo 1 anno fa
parent
commit
012b199628
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      nodes/gate/service/srvSprotoAgent.lua

+ 3 - 0
nodes/gate/service/srvSprotoAgent.lua

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