Merge pull request #407 from linse073/patch-3

loginserver.lua中的launch_slave的lua消息处理函数的return问题
This commit is contained in:
cloudwu
2015-12-08 13:31:16 +08:00

View File

@@ -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