Changeset

5824:6f4c8af128e2

net.server_select: Return handler from addclient
author Kim Alvefur <zash@zash.se>
date Fri, 06 Sep 2013 10:53:04 +0200
parents 5823:b8514209263c
children 5825:ac5e05ffc921
files net/server_select.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Fri Sep 06 10:52:37 2013 +0200
+++ b/net/server_select.lua	Fri Sep 06 10:53:04 2013 +0200
@@ -937,9 +937,9 @@
 	client:settimeout( 0 )
 	_, err = client:connect( address, port )
 	if err then -- try again
-		local handler = wrapclient( client, address, port, listeners, pattern, sslctx )
+		return wrapclient( client, address, port, listeners, pattern, sslctx )
 	else
-		wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx )
+		return wrapconnection( nil, listeners, client, address, port, "clientport", pattern, sslctx )
 	end
 end