Skip to content

Commit

Permalink
do not response send, may fix issue cloudwu#578
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Mar 2, 2017
1 parent 5c831e2 commit 2b55bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lualib/skynet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ function suspend(co, result, command, param, size)
end

local ret
if not dead_service[co_address] then
-- do not response when session == 0 (send)
if co_session ~= 0 and not dead_service[co_address] then
if ok then
ret = c.send(co_address, skynet.PTYPE_RESPONSE, co_session, f(...)) ~= nil
if not ret then
Expand Down

0 comments on commit 2b55bc5

Please sign in to comment.