Software /
code /
prosody
Diff
net/server_select.lua @ 6540:31a8b3bfb31d
net.server_select: In add_task timer callback, use passed in time rather than re-fetching
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Thu, 15 Jan 2015 09:05:08 -0500 |
parent | 6539:f923140ee7c5 |
child | 6541:a702786f4f31 |
line wrap: on
line diff
--- a/net/server_select.lua Thu Jan 15 09:03:00 2015 -0500 +++ b/net/server_select.lua Thu Jan 15 09:05:08 2015 -0500 @@ -848,8 +848,7 @@ end end - addtimer(function() - local current_time = luasocket_gettime(); + addtimer(function(current_time) if #new_data > 0 then for _, d in pairs(new_data) do table_insert(data, d);