remove dup code

This commit is contained in:
Cloud Wu
2014-07-16 17:53:18 +08:00
parent 691bb28163
commit 9421435ac5

View File

@@ -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)