aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit0a071df2d476cabe6153b250189ca6fa0e8a1762 (patch)
treef5aeaee8155817ad4fbf86487f1c8f5c0060fc14 /net
parent6baa04b056c6090a1b236eef246eed914c91da83 (diff)
downloadprosody-0a071df2d476cabe6153b250189ca6fa0e8a1762.tar.gz
prosody-0a071df2d476cabe6153b250189ca6fa0e8a1762.zip
net.server_epoll: ... and include a traceback
Diffstat (limited to 'net')
-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);