mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Try to fix #1958
This commit is contained in:
@@ -131,7 +131,8 @@ skynet.start(function()
|
|||||||
dispatch = dispatch_request,
|
dispatch = dispatch_request,
|
||||||
}
|
}
|
||||||
-- fd can write, but don't read fd, the data package will forward from gate though client protocol.
|
-- fd can write, but don't read fd, the data package will forward from gate though client protocol.
|
||||||
skynet.call(gate, "lua", "forward", fd)
|
-- forward may fail, see https://github.com/cloudwu/skynet/issues/1958
|
||||||
|
pcall(skynet.call,gate, "lua", "forward", fd)
|
||||||
|
|
||||||
skynet.dispatch("lua", function(_,source, cmd, ...)
|
skynet.dispatch("lua", function(_,source, cmd, ...)
|
||||||
if cmd == "exit" then
|
if cmd == "exit" then
|
||||||
|
|||||||
Reference in New Issue
Block a user