diff --git a/src/agent.lua b/src/agent.lua index 803dc18..e7d8350 100644 --- a/src/agent.lua +++ b/src/agent.lua @@ -244,8 +244,10 @@ function CMD.start(session, source, gate, fd, ip, hotfixs) agent_util:reset() math.randomInit() - for _, hotfix in ipairs(hotfixs) do - CMD.hotfix(hotfix) + if hotfixs then + for _, hotfix in ipairs(hotfixs) do + CMD.hotfix(hotfix) + end end -- 这里将消息伪装成 watchdog 发出,这样就由 A->B->C->B->A 变成 A->B->C->A -- libgit2 0.21.2