From c6bc543f5e75b3f589000de7382071ce263b1969 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 15 Jan 2015 09:05:08 -0500 Subject: net.server_select: In add_task timer callback, use passed in time rather than re-fetching --- net/server_select.lua | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3