diff options
author | Kim Alvefur <zash@zash.se> | 2016-07-08 22:01:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-07-08 22:01:10 +0200 |
commit | 7b3f79b2ec8c94a585354d442bc9680cea62c5a3 (patch) | |
tree | e5339d0c057334591e52af0777588890d51081a5 /net/server_select.lua | |
parent | 8c0ca748b53ca43d707d86590f666bda5e908a81 (diff) | |
parent | 9741bdfb3887695e7021d793ce6a96eaf595ed2b (diff) | |
download | prosody-7b3f79b2ec8c94a585354d442bc9680cea62c5a3.tar.gz prosody-7b3f79b2ec8c94a585354d442bc9680cea62c5a3.zip |
Merge 0.10->trunk
Diffstat (limited to 'net/server_select.lua')
-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 37d57d29..f70f81d0 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -904,7 +904,7 @@ loop = function(once) -- this is the main loop of the program end local read, write, err = socket_select( _readlist, _sendlist, math_min(_selecttimeout, next_timer_time) ) - for i, socket in ipairs( write ) do -- send data waiting in writequeues + for _, socket in ipairs( write ) do -- send data waiting in writequeues local handler = _socketlist[ socket ] if handler then handler.sendbuffer( ) @@ -913,7 +913,7 @@ loop = function(once) -- this is the main loop of the program out_put "server.lua: found no handler and closed socket (writelist)" -- this should not happen end end - for i, socket in ipairs( read ) do -- receive data + for _, socket in ipairs( read ) do -- receive data local handler = _socketlist[ socket ] if handler then handler.readbuffer( ) |