aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-12 14:34:02 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-12 14:34:02 +0100
commit04263369c807c434ebc9094723589098145beae5 (patch)
treeb071d22ef627c46abc6913c56cf44d9c11259a46 /net/server.lua
parent79d0189710c993f48da7c5e70fb65d3b4c4161d7 (diff)
parent4273b66a6ca55288d83f66203d51a2287eea16aa (diff)
downloadprosody-04263369c807c434ebc9094723589098145beae5.tar.gz
prosody-04263369c807c434ebc9094723589098145beae5.zip
Merge with 0.5
Diffstat (limited to 'net/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 ca6e6380..9418d388 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -530,7 +530,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
end
end
disconnect( handler, "ssl handshake failed" )
- handler.close( true ) -- forced disconnect
+ _ = handler and handler.close( true ) -- forced disconnect
return false -- handshake failed
end
)