net.server: Fix potential fatal error in server.lua

This commit is contained in:
Matthew Wild 2009-02-09 13:41:05 +00:00
parent 3fc972b6c2
commit af27b13805

View file

@ -439,7 +439,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
out_put( "server.lua: client ", ip, ":", clientport, " error: ", err )
fatalerror = true
disconnect( handler, err )
handler.close( )
_ = handler and handler.close( )
return false
end
end