mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
Merge pull request #407 from linse073/patch-3
loginserver.lua中的launch_slave的lua消息处理函数的return问题
This commit is contained in:
@@ -106,9 +106,9 @@ local function launch_slave(auth_handler)
|
||||
skynet.dispatch("lua", function(_,_,...)
|
||||
local ok, msg, len = pcall(auth_fd, ...)
|
||||
if ok then
|
||||
return skynet.ret(msg,len)
|
||||
skynet.ret(msg,len)
|
||||
else
|
||||
return skynet.ret(skynet.pack(false, msg))
|
||||
skynet.ret(skynet.pack(false, msg))
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user