Changeset

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
parents 6539:f923140ee7c5
children 6541:a702786f4f31
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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);