Skip to content

Commit

Permalink
do not close fd if no handler.disconnect, #1358
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Mar 11, 2021
1 parent 094b20a commit 037c3a5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lualib/snax/gateserver.lua
Expand Up @@ -102,8 +102,6 @@ function gateserver.start(handler)
end
if handler.disconnect then
handler.disconnect(fd)
else
socketdriver.close(fd)
end
else
socket = nil
Expand Down

0 comments on commit 037c3a5

Please sign in to comment.