Software /
code /
prosody
Diff
net/server.lua @ 1533:8c13be7aa9f0
net.server: Don't close handler if it is already nil when SSL handshake fails
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 12 Jul 2009 14:29:42 +0100 |
parent | 1522:569d58d21612 |
child | 1535:0afc8ae01515 |
line wrap: on
line diff
--- a/net/server.lua Fri Jul 10 16:47:31 2009 +0100 +++ b/net/server.lua Sun Jul 12 14:29:42 2009 +0100 @@ -530,7 +530,7 @@ end end disconnect( handler, "ssl handshake failed" ) - handler.close( true ) -- forced disconnect + _ = handler and handler.close( true ) -- forced disconnect return false -- handshake failed end )