net.server_select: Don't call onconnect twice for SSL connections

remotes/origin/0.11
Matthew Wild 13 years ago
parent c619e0e817
commit 1da2e8a43e
  1. 2
      net/server_select.lua

@ -243,7 +243,7 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx ) -- t
end
connections = connections + 1
out_put( "server.lua: accepted new client connection from ", tostring(ip), ":", tostring(clientport), " to ", tostring(serverport))
if dispatch then
if dispatch and not sslctx then -- SSL connections will notify onconnect when handshake completes
return dispatch( handler );
end
return;

Loading…
Cancel
Save