mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix #872
This commit is contained in:
@@ -3,7 +3,7 @@ local mc = require "skynet.multicast.core"
|
|||||||
|
|
||||||
local multicastd
|
local multicastd
|
||||||
local multicast = {}
|
local multicast = {}
|
||||||
local dispatch = setmetatable({} , {__mode = "kv" })
|
local dispatch = {}
|
||||||
|
|
||||||
local chan = {}
|
local chan = {}
|
||||||
local chan_meta = {
|
local chan_meta = {
|
||||||
@@ -70,6 +70,7 @@ function chan:unsubscribe()
|
|||||||
local c = assert(self.channel)
|
local c = assert(self.channel)
|
||||||
skynet.send(multicastd, "lua", "USUB", c)
|
skynet.send(multicastd, "lua", "USUB", c)
|
||||||
self.__subscribe = nil
|
self.__subscribe = nil
|
||||||
|
dispatch[c] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local function dispatch_subscribe(channel, source, pack, msg, sz)
|
local function dispatch_subscribe(channel, source, pack, msg, sz)
|
||||||
|
|||||||
Reference in New Issue
Block a user