mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
remove dup code
This commit is contained in:
@@ -65,14 +65,6 @@ end
|
|||||||
|
|
||||||
local CMD = {}
|
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)
|
function CMD.forward(source, fd, client, address)
|
||||||
local c = assert(connection[fd])
|
local c = assert(connection[fd])
|
||||||
unforward(c)
|
unforward(c)
|
||||||
|
|||||||
Reference in New Issue
Block a user