srv may be a local name, see #1220

This commit is contained in:
Cloud Wu
2020-07-28 15:59:00 +08:00
parent bfc19ee7b9
commit 875b7683c6

View File

@@ -91,7 +91,8 @@ local function _error_dispatch(error_session, error_source)
end
end
for session, srv in pairs(watching_session) do
if srv == error_source then
if srv == error_source or
(type(srv) == "string" and skynet.localname(srv) == error_source) then
tinsert(error_queue, session)
end
end