diff options
author | daurnimator <quae@daurnimator.com> | 2015-01-15 09:05:08 -0500 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2015-01-15 09:05:08 -0500 |
commit | c6bc543f5e75b3f589000de7382071ce263b1969 (patch) | |
tree | 8f9a7033254df93e63da10be0c2707198f55a526 /net/server_select.lua | |
parent | 7a1a86aba7a1c1bacb7b082f8c94ec5ee20c405d (diff) | |
download | prosody-c6bc543f5e75b3f589000de7382071ce263b1969.tar.gz prosody-c6bc543f5e75b3f589000de7382071ce263b1969.zip |
net.server_select: In add_task timer callback, use passed in time rather than re-fetching
Diffstat (limited to 'net/server_select.lua')
-rw-r--r-- | net/server_select.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 6d98ccac..b9e72342 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -848,8 +848,7 @@ local add_task do 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); |