aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-12-16 23:32:11 +0000
committerMatthew Wild <mwild1@gmail.com>2013-12-16 23:32:11 +0000
commit535e8c110294835d941ac834e88eeb8bb84d14f1 (patch)
tree19fa0823b9f58cbf86368625aef15c98eeb8fe8b /net/server_select.lua
parent077a959dbc316d125f047c28f6a5eb89569dcf07 (diff)
parente204ed5dce8050537ca6d8af0c69a8b62ea8aa2e (diff)
downloadprosody-535e8c110294835d941ac834e88eeb8bb84d14f1.tar.gz
prosody-535e8c110294835d941ac834e88eeb8bb84d14f1.zip
Merge 0.9->0.10
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 4721d6ad..c5e0772f 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -920,13 +920,9 @@ local wrapclient = function( socket, ip, serverport, listeners, pattern, sslctx
-- When socket is writeable, call onconnect
local _sendbuffer = handler.sendbuffer;
handler.sendbuffer = function ()
- _sendlistlen = removesocket( _sendlist, socket, _sendlistlen );
handler.sendbuffer = _sendbuffer;
listeners.onconnect(handler);
- -- If there was data with the incoming packet, handle it now.
- if #handler:bufferqueue() > 0 then
- return _sendbuffer();
- end
+ return _sendbuffer(); -- Send any queued outgoing data
end
end
end