diff options
author | Kim Alvefur <zash@zash.se> | 2013-04-17 19:10:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-04-17 19:10:04 +0200 |
commit | 012519b6ad7e4a8487b5bb143c081a4e0600a65b (patch) | |
tree | bbb6068989d701249c75d0626778b76d2343ef54 /net/server_select.lua | |
parent | 153facffd6d5d8a65e747c77f6582753ad5e1073 (diff) | |
download | prosody-012519b6ad7e4a8487b5bb143c081a4e0600a65b.tar.gz prosody-012519b6ad7e4a8487b5bb143c081a4e0600a65b.zip |
net.server_select: Don't call onconnect twice on SSL connections
Diffstat (limited to 'net/server_select.lua')
-rw-r--r-- | net/server_select.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 8ce9eed2..f123f4b7 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -551,9 +551,6 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions handler.sendbuffer = _sendbuffer _ = status and status( handler, "ssl-handshake-complete" ) - if self.autostart_ssl and listeners.onconnect then - listeners.onconnect(self); - end _readlistlen = addsocket(_readlist, client, _readlistlen) return true else |