mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
bugfix: watchdog socket data
This commit is contained in:
@@ -85,7 +85,7 @@ function MSG.data(fd, msg, sz)
|
|||||||
if agent then
|
if agent then
|
||||||
skynet.redirect(agent, c.client, "client", 0, msg, sz)
|
skynet.redirect(agent, c.client, "client", 0, msg, sz)
|
||||||
else
|
else
|
||||||
skynet.send(watchdog, "lua", "socket", "data", netpack.tostring(msg, sz))
|
skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user