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
commit2a10013752f25a4014be6085a0e35e1abb0791d1 (patch)
tree8f9a7033254df93e63da10be0c2707198f55a526
parent037dd40bb4814f85e4bdfe40d51786350a7742ee (diff)
downloadprosody-2a10013752f25a4014be6085a0e35e1abb0791d1.tar.gz
prosody-2a10013752f25a4014be6085a0e35e1abb0791d1.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);