Commit a5b025b0971a791e53c1b80fbb1da56b21db9351
1 parent
5e5d7680
已存在agent 玩家重新登录不进行更新
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/agent.lua
| ... | ... | @@ -244,8 +244,10 @@ function CMD.start(session, source, gate, fd, ip, hotfixs) |
| 244 | 244 | agent_util:reset() |
| 245 | 245 | math.randomInit() |
| 246 | 246 | |
| 247 | - for _, hotfix in ipairs(hotfixs) do | |
| 248 | - CMD.hotfix(hotfix) | |
| 247 | + if hotfixs then | |
| 248 | + for _, hotfix in ipairs(hotfixs) do | |
| 249 | + CMD.hotfix(hotfix) | |
| 250 | + end | |
| 249 | 251 | end |
| 250 | 252 | |
| 251 | 253 | -- 这里将消息伪装成 watchdog 发出,这样就由 A->B->C->B->A 变成 A->B->C->A | ... | ... |