Diff

net/server.lua @ 773:c36edc1934c5

net.server: Fix potential fatal error in server.lua
author Matthew Wild <mwild1@gmail.com>
date Mon, 09 Feb 2009 13:41:05 +0000
parent 770:bddf52121908
child 775:d4b6714fc829
line wrap: on
line diff
--- a/net/server.lua	Mon Feb 09 13:32:46 2009 +0000
+++ b/net/server.lua	Mon Feb 09 13:41:05 2009 +0000
@@ -439,7 +439,7 @@
             out_put( "server.lua: client ", ip, ":", clientport, " error: ", err )
             fatalerror = true
             disconnect( handler, err )
-            handler.close( )
+	    _ = handler and handler.close( )
             return false
         end
     end