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 | 6789631edd446040ca4183398fc7a925305a3bbd (patch) | |
tree | bbb6068989d701249c75d0626778b76d2343ef54 /net | |
parent | bd94f0a6c2d19df775c324ef184e4a434ceeef6c (diff) | |
download | prosody-6789631edd446040ca4183398fc7a925305a3bbd.tar.gz prosody-6789631edd446040ca4183398fc7a925305a3bbd.zip |
net.server_select: Don't call onconnect twice on SSL connections
Diffstat (limited to 'net')
-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 |