net.server_epoll: ... and include a traceback
authorKim Alvefur <zash@zash.se>
Tue, 30 Jun 2020 17:34:39 +0200
changeset 10994 03e76ad725b2
parent 10993 b824fe9d0c8b
child 10995 aa85cb5b859f
net.server_epoll: ... and include a traceback
net/server_epoll.lua
--- a/net/server_epoll.lua	Tue Jun 30 17:33:48 2020 +0200
+++ b/net/server_epoll.lua	Tue Jun 30 17:34:39 2020 +0200
@@ -124,7 +124,7 @@
 		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);