Signed-off-by: bingo <heidan725@qq.com>

This commit is contained in:
bingo
2015-09-21 11:21:36 +08:00
parent 752a501f68
commit 325452a242

View File

@@ -48,7 +48,6 @@ function gateserver.start(handler)
function CMD.close()
assert(socket)
socketdriver.close(socket)
socket = nil
end
local MSG = {}
@@ -106,6 +105,8 @@ function gateserver.start(handler)
handler.disconnect(fd)
end
close_fd(fd)
else
socket = nil
end
end