From ca21267fc0f59065aabc0a84bedcc535ec344cf1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 5 Apr 2015 16:47:49 +0200 Subject: mod_s2s: Catch attempt to close dummy origin of s2s error replies (fixes a top level error) --- plugins/mod_s2s/mod_s2s.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mod_s2s') diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index a58c6421..e7c10e7e 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -54,6 +54,9 @@ local function bounce_sendq(session, reason) (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); end; dummy = true; + close = function () + (session.log or log)("error", "Attempting to close the dummy origin of s2s error replies, please report this! Traceback: %s", traceback()); + end; }; for i, data in ipairs(sendq) do local reply = data[2]; -- cgit v1.2.3