Changeset

11265:957d417eb56e 0.11

net.server_epoll: Fix off-by-one in 2c559953ad41 Thanks tmolitor
author Kim Alvefur <zash@zash.se>
date Sun, 10 Jan 2021 14:54:03 +0100
parents 11263:1274deeab39a
children 11266:2115496e8251
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Fri Jan 08 23:23:56 2021 +0100
+++ b/net/server_epoll.lua	Sun Jan 10 14:54:03 2021 +0100
@@ -123,7 +123,7 @@
 
 	if readd then
 		for _, timer in pairs(readd) do
-			timers:insert(timer, timer[2]);
+			timers:insert(timer, timer[1]);
 		end
 		peek = timers:peek();
 	end