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
commit8f1b950b8da2d5632d463b7210cc2c2dc9586f03 (patch)
treebbb6068989d701249c75d0626778b76d2343ef54 /net/server_select.lua
parentedef039dcac37cddbb4612e426fa22c3cbf6313c (diff)
downloadprosody-8f1b950b8da2d5632d463b7210cc2c2dc9586f03.tar.gz
prosody-8f1b950b8da2d5632d463b7210cc2c2dc9586f03.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