do not close fd if no handler.disconnect, #1358

This commit is contained in:
Cloud Wu
2021-03-11 12:31:37 +08:00
parent 094b20aae7
commit 037c3a5c48

View File

@@ -102,8 +102,6 @@ function gateserver.start(handler)
end end
if handler.disconnect then if handler.disconnect then
handler.disconnect(fd) handler.disconnect(fd)
else
socketdriver.close(fd)
end end
else else
socket = nil socket = nil