Revert "srv may be a local name, see #1220"

This reverts commit 875b7683c6.
This commit is contained in:
Cloud Wu
2020-07-28 16:13:05 +08:00
parent 875b7683c6
commit c749b13010

View File

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