diff options
author | Kim Alvefur <zash@zash.se> | 2013-09-06 10:53:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-09-06 10:53:04 +0200 |
commit | 314c9eec90110aa104a066f22d48e9420705f769 (patch) | |
tree | 736e2aa8ec14ecd245fdba60b5db755fee6d8208 | |
parent | 5129829bbf9c146885eaca2d290e2033bb6b8833 (diff) | |
download | prosody-314c9eec90110aa104a066f22d48e9420705f769.tar.gz prosody-314c9eec90110aa104a066f22d48e9420705f769.zip |
net.server_select: Return handler from addclient
-rw-r--r-- | net/server_select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index d5d27206..ca55d2d5 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -937,9 +937,9 @@ local addclient = function( address, port, listeners, pattern, sslctx ) 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 |