From c749b130105a75c1072c8b353747db577135b848 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Tue, 28 Jul 2020 16:13:05 +0800 Subject: [PATCH] Revert "srv may be a local name, see #1220" This reverts commit 875b7683c608c8b33bc2307185358de85870a242. --- lualib/skynet.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index 1ef8ad46..d1e08b21 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -91,8 +91,7 @@ local function _error_dispatch(error_session, error_source) end end for session, srv in pairs(watching_session) do - if srv == error_source or - (type(srv) == "string" and skynet.localname(srv) == error_source) then + if srv == error_source then tinsert(error_queue, session) end end