aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-30 17:34:39 +0200
committerKim Alvefur <zash@zash.se>2020-06-30 17:34:39 +0200
commitd8d6efa3ab002ee94341de79d0946f218f6fb61e (patch)
treef5aeaee8155817ad4fbf86487f1c8f5c0060fc14
parent0bd28a3c0f5a48d874bb603b0e7fe7c58a0c7b1b (diff)
downloadprosody-d8d6efa3ab002ee94341de79d0946f218f6fb61e.tar.gz
prosody-d8d6efa3ab002ee94341de79d0946f218f6fb61e.zip
net.server_epoll: ... and include a traceback
-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 64f79921..f102f806 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -124,7 +124,7 @@ local function runtimers(next_delay, min_wait)
end
local _, timer, id = timers:pop();
- local ok, ret = pcall(timer, now, id);
+ local ok, ret = xpcall(timer, traceback, now, id);
if ok and type(ret) == "number" then
local next_time = elapsed+ret;
timers:insert(timer, next_time);