Changeset

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
parents 772:cbe49bb8d51d
children 774:4885c6e101b4
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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