net.server_epoll: Fix off-by-one in 2c559953ad41

Thanks tmolitor
This commit is contained in:
Kim Alvefur 2021-01-10 14:54:03 +01:00
parent a7c018ed86
commit 0f3dae441b

View file

@ -123,7 +123,7 @@ local function runtimers(next_delay, min_wait)
if readd then
for _, timer in pairs(readd) do
timers:insert(timer, timer[2]);
timers:insert(timer, timer[1]);
end
peek = timers:peek();
end