Changeset

10989:b824fe9d0c8b

net.server_epoll: Report errors in timers
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jun 2020 17:33:48 +0200
parents 10988:9dcbbb1d12c3
children 10990:03e76ad725b2
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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();