aboutsummaryrefslogtreecommitdiffstats
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
commit998b0c1b8b39f8033fdfe1439afb533455ba15d5 (patch)
treebbb6068989d701249c75d0626778b76d2343ef54
parent70870199ee146db1ff7d5a15bda6eb5c0d96a1a3 (diff)
downloadprosody-998b0c1b8b39f8033fdfe1439afb533455ba15d5.tar.gz
prosody-998b0c1b8b39f8033fdfe1439afb533455ba15d5.zip
net.server_select: Don't call onconnect twice on SSL connections
-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