aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-30 17:33:48 +0200
committerKim Alvefur <zash@zash.se>2020-06-30 17:33:48 +0200
commit6baa04b056c6090a1b236eef246eed914c91da83 (patch)
tree050365c59a3b6e61d8b5deb6dc521ec12c262a43 /net
parent7fb1dd361bf747dc02e2b25ae521ffc6670551f5 (diff)
downloadprosody-6baa04b056c6090a1b236eef246eed914c91da83.tar.gz
prosody-6baa04b056c6090a1b236eef246eed914c91da83.zip
net.server_epoll: Report errors in timers
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index c5d5ec6c..64f79921 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -128,6 +128,8 @@ local function runtimers(next_delay, min_wait)
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();