From 2b55bc57a49ceba419f6bb5f79338a73b124b65b Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 2 Mar 2017 14:21:56 +0800 Subject: [PATCH] do not response send, may fix issue #578 --- lualib/skynet.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index 4cefc893..7b4c466a 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -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