aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-04-05 16:47:49 +0200
committerKim Alvefur <zash@zash.se>2015-04-05 16:47:49 +0200
commit1be7952fe226feefa784e1975d23e950323877e3 (patch)
tree80663fbe11e9e349535f66dddec7a95a071c89ac /plugins
parent358ced14e0865aa637aaa9e3dc98d6eff47d4148 (diff)
downloadprosody-1be7952fe226feefa784e1975d23e950323877e3.tar.gz
prosody-1be7952fe226feefa784e1975d23e950323877e3.zip
mod_s2s: Catch attempt to close dummy origin of s2s error replies (fixes a top level error)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua3
1 files changed, 3 insertions, 0 deletions
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];