mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
do not close fd if no handler.disconnect, #1358
This commit is contained in:
@@ -102,8 +102,6 @@ function gateserver.start(handler)
|
||||
end
|
||||
if handler.disconnect then
|
||||
handler.disconnect(fd)
|
||||
else
|
||||
socketdriver.close(fd)
|
||||
end
|
||||
else
|
||||
socket = nil
|
||||
|
||||
Reference in New Issue
Block a user