bugfix: delete local channel

This commit is contained in:
Cloud Wu
2014-08-02 18:32:54 +08:00
parent 11c528987c
commit b49fc291a7
2 changed files with 9 additions and 3 deletions

View File

@@ -50,8 +50,10 @@ function command.DEL(source, c)
channel[c] = nil
channel_n[c] = nil
channel_remote[c] = nil
for node in pairs(remote) do
skynet.send(node_address[node], "lua", "DELR", c)
if remote then
for node in pairs(remote) do
skynet.send(node_address[node], "lua", "DELR", c)
end
end
return NORET
end