# HG changeset patch # User Kim Alvefur # Date 1378457584 -7200 # Node ID 6f4c8af128e2508b4dc2c5bdb17497d792dd3f81 # Parent b8514209263c4ac93897e9040d0caac959c3b686 net.server_select: Return handler from addclient diff -r b8514209263c -r 6f4c8af128e2 net/server_select.lua --- 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