Skip to content

Commit

Permalink
Signed-off-by: bingo <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
bingo committed Sep 21, 2015
1 parent 752a501 commit 325452a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lualib/snax/gateserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function gateserver.start(handler)
function CMD.close()
assert(socket)
socketdriver.close(socket)
socket = nil
end

local MSG = {}
Expand Down Expand Up @@ -106,6 +105,8 @@ function gateserver.start(handler)
handler.disconnect(fd)
end
close_fd(fd)
else
socket = nil
end
end

Expand Down

0 comments on commit 325452a

Please sign in to comment.