mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
remove dup code
This commit is contained in:
@@ -65,14 +65,6 @@ end
|
||||
|
||||
local CMD = {}
|
||||
|
||||
local function unforward(c)
|
||||
if c.agent then
|
||||
forwarding[c.agent] = nil
|
||||
c.agent = nil
|
||||
c.client = nil
|
||||
end
|
||||
end
|
||||
|
||||
function CMD.forward(source, fd, client, address)
|
||||
local c = assert(connection[fd])
|
||||
unforward(c)
|
||||
|
||||
Reference in New Issue
Block a user