dummy session is 1

This commit is contained in:
Cloud Wu
2016-12-02 21:23:12 +08:00
parent a3eccf5e37
commit 7ee9cdb29b
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ function handler.message(fd, msg, sz)
local c = connection[fd]
local agent = c.agent
if agent then
skynet.redirect(agent, c.client, "client", 0, msg, sz)
skynet.redirect(agent, c.client, "client", 1, msg, sz)
else
skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz))
end