# HG changeset patch # User Kim Alvefur # Date 1366218604 -7200 # Node ID f2631a14b953d07f8b0fe4ca31f8beceb5216872 # Parent 169772e3d4e034c48a0b5507323c2427a0d968bc net.server_select: Don't call onconnect twice on SSL connections diff -r 169772e3d4e0 -r f2631a14b953 net/server_select.lua --- a/net/server_select.lua Wed Apr 17 14:32:26 2013 +0100 +++ b/net/server_select.lua Wed Apr 17 19:10:04 2013 +0200 @@ -551,9 +551,6 @@ 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