mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
bugfix: watchdog forward client message to agent, set session = 0x7fffffff
This commit is contained in:
@@ -31,7 +31,8 @@ end
|
||||
function command:data(data, session)
|
||||
local agent = agent_all[self]
|
||||
if agent then
|
||||
skynet.redirect(agent[1], agent[2], session, data)
|
||||
-- 0x7fffffff means it's a client
|
||||
skynet.redirect(agent[1], agent[2], 0x7fffffff, data)
|
||||
else
|
||||
skynet.error(string.format("agent data drop %d size=%d",self,#data))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user