Skip to content

Commit

Permalink
check empty group, See pr cloudwu#351
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 8, 2015
1 parent 14bc029 commit 8924b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/multicastd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ end
-- for remote node, call remote_publish. (call mc.unpack and skynet.tostring to convert message pointer to string)
local function publish(c , source, pack, size)
local group = channel[c]
if group == nil then
if group == nil or next(group) == nil then
-- dead channel, delete the pack. mc.bind returns the pointer in pack
local pack = mc.bind(pack, 1)
mc.close(pack)
Expand Down

0 comments on commit 8924b86

Please sign in to comment.