mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
bugfix: multicast chan gc
This commit is contained in:
@@ -8,7 +8,9 @@ local dispatch = setmetatable({} , {__mode = "kv" })
|
||||
local chan = {}
|
||||
local chan_meta = {
|
||||
__index = chan,
|
||||
__gc = unsubscribe,
|
||||
__gc = function(self)
|
||||
self:unsubscribe()
|
||||
end,
|
||||
__tostring = function (self)
|
||||
return string.format("[Multicast:%x]",self.channel)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user