Skip to content

Commit

Permalink
luvit: net: Server: clear _handle to nil
Browse files Browse the repository at this point in the history
_handle wasn't getting nilled out, causing possible double close
  • Loading branch information
Brandon Philips committed Aug 8, 2012
1 parent a8cd419 commit ff2be5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/luvit/net.lua
Expand Up @@ -336,6 +336,7 @@ function Server:close(callback)
end
if self._handle then
self._handle:close()
self._handle = nil
end
self:_emitClosedIfDrained()
end
Expand Down

0 comments on commit ff2be5c

Please sign in to comment.