mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user