# HG changeset patch # User Kim Alvefur # Date 1610286843 -3600 # Node ID 957d417eb56e354b27c4a671a25ae0ddff583a09 # Parent 1274deeab39a68fd24502d5a8086f2ab9f54c146 net.server_epoll: Fix off-by-one in 2c559953ad41 Thanks tmolitor diff -r 1274deeab39a -r 957d417eb56e net/server_epoll.lua --- 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