Software /
code /
prosody
Comparison
net/server_epoll.lua @ 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 |
parent | 11262:2c559953ad41 |
child | 11267:97077089f3c2 |
child | 11751:a8c9a78c6a4b |
comparison
equal
deleted
inserted
replaced
11263:1274deeab39a | 11265:957d417eb56e |
---|---|
121 peek = timers:peek(); | 121 peek = timers:peek(); |
122 end | 122 end |
123 | 123 |
124 if readd then | 124 if readd then |
125 for _, timer in pairs(readd) do | 125 for _, timer in pairs(readd) do |
126 timers:insert(timer, timer[2]); | 126 timers:insert(timer, timer[1]); |
127 end | 127 end |
128 peek = timers:peek(); | 128 peek = timers:peek(); |
129 end | 129 end |
130 | 130 |
131 if peek == nil then | 131 if peek == nil then |