aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-10 14:54:03 +0100
committerKim Alvefur <zash@zash.se>2021-01-10 14:54:03 +0100
commit0f3dae441b5e1e8a444ae221e0f17bbfb493823a (patch)
treedf24aa6cefcc16c179c018f7a8d6a7646b75ea15
parenta7c018ed86c937b86d2f25cd868a05628bba82d8 (diff)
downloadprosody-0f3dae441b5e1e8a444ae221e0f17bbfb493823a.tar.gz
prosody-0f3dae441b5e1e8a444ae221e0f17bbfb493823a.zip
net.server_epoll: Fix off-by-one in 2c559953ad41
Thanks tmolitor
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index e2be448c..53a67dd5 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -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