Software /
code /
prosody
Diff
net/server_epoll.lua @ 10989:b824fe9d0c8b
net.server_epoll: Report errors in timers
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 30 Jun 2020 17:33:48 +0200 |
parent | 10987:62355b801772 |
child | 10990:03e76ad725b2 |
line wrap: on
line diff
--- a/net/server_epoll.lua Tue Jun 30 02:31:57 2020 +0200 +++ b/net/server_epoll.lua Tue Jun 30 17:33:48 2020 +0200 @@ -128,6 +128,8 @@ if ok and type(ret) == "number" then local next_time = elapsed+ret; timers:insert(timer, next_time); + elseif not ok then + log("error", "Error in timer: %s", ret); end peek = timers:peek();