aboutsummaryrefslogtreecommitdiffstats
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
commitca21267fc0f59065aabc0a84bedcc535ec344cf1 (patch)
tree80663fbe11e9e349535f66dddec7a95a071c89ac
parent6566d78b820a402786ae660414d36035b58e9526 (diff)
downloadprosody-ca21267fc0f59065aabc0a84bedcc535ec344cf1.tar.gz
prosody-ca21267fc0f59065aabc0a84bedcc535ec344cf1.zip
mod_s2s: Catch attempt to close dummy origin of s2s error replies (fixes a top level error)
-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];