Changeset

6626:071611bc4f1d

mod_s2s: Catch attempt to close dummy origin of s2s error replies (fixes a top level error)
author Kim Alvefur <zash@zash.se>
date Sun, 05 Apr 2015 16:47:49 +0200
parents 6625:bae327ea487a
children 6633:832987170da8
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Apr 05 16:24:10 2015 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Sun Apr 05 16:47:49 2015 +0200
@@ -54,6 +54,9 @@
 			(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];