Software /
code /
prosody
Changeset
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 |
parents | 1527:47729fa90a6c |
children | 1534:f2dd7ac89470 1535:0afc8ae01515 |
files | net/server.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 )