aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-17 19:10:04 +0200
committerKim Alvefur <zash@zash.se>2013-04-17 19:10:04 +0200
commit6789631edd446040ca4183398fc7a925305a3bbd (patch)
treebbb6068989d701249c75d0626778b76d2343ef54 /net/server_select.lua
parentbd94f0a6c2d19df775c324ef184e4a434ceeef6c (diff)
downloadprosody-6789631edd446040ca4183398fc7a925305a3bbd.tar.gz
prosody-6789631edd446040ca4183398fc7a925305a3bbd.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.lua3
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