aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2015-01-15 09:05:08 -0500
committerdaurnimator <quae@daurnimator.com>2015-01-15 09:05:08 -0500
commitc6bc543f5e75b3f589000de7382071ce263b1969 (patch)
tree8f9a7033254df93e63da10be0c2707198f55a526
parent7a1a86aba7a1c1bacb7b082f8c94ec5ee20c405d (diff)
downloadprosody-c6bc543f5e75b3f589000de7382071ce263b1969.tar.gz
prosody-c6bc543f5e75b3f589000de7382071ce263b1969.zip
net.server_select: In add_task timer callback, use passed in time rather than re-fetching
-rw-r--r--net/server_select.lua3
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);