aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-02-09 13:41:05 +0000
committerMatthew Wild <mwild1@gmail.com>2009-02-09 13:41:05 +0000
commitaf27b13805d574106b81330890f81d94695e5edc (patch)
treed09bb66373f1d01bd1dca886877f8133d6a95902
parent3fc972b6c2bd4545cdcc1856b28a67bb7fdcfd1a (diff)
downloadprosody-af27b13805d574106b81330890f81d94695e5edc.tar.gz
prosody-af27b13805d574106b81330890f81d94695e5edc.zip
net.server: Fix potential fatal error in server.lua
-rw-r--r--net/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 0a0f8492..773a4232 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -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