From 1d20ec63e66f04d0da8470d2f06c98be25960de7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 22 Feb 2022 12:35:31 +0100 Subject: mod_c2s,mod_s2s: Wrap callback to improve tracebacks Should make traces point here instead of timer dispatch, making debugging easier --- plugins/mod_s2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_s2s.lua') diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index 836cf347..e539082d 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -987,7 +987,7 @@ module:hook("server-stopping", function(event) -- Wait for them to close properly if they haven't already if next(sessions) ~= nil then module:log("info", "Waiting for sessions to close"); - add_task(stream_close_timeout + 1, done); + add_task(stream_close_timeout + 1, function () done() end); wait(); end -- cgit v1.2.3