diff options
-rw-r--r-- | net/server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua index 8d0d3b1a..43b295e9 100644 --- a/net/server.lua +++ b/net/server.lua @@ -318,6 +318,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport return shutdown( socket, pattern )
end
handler.close = function( forced )
+ if not handler then return true; end
_readlistlen = removesocket( _readlist, socket, _readlistlen )
_readtimes[ handler ] = nil
if bufferqueuelen ~= 0 then
|