Software /
code /
prosody
Diff
net/server_select.lua @ 5824:6f4c8af128e2
net.server_select: Return handler from addclient
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Sep 2013 10:53:04 +0200 |
parent | 5823:b8514209263c |
child | 5846:b8c7656481ac |
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