From d617081ac45113fdaa8fc0604bee29a08d4aefed Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 5 Sep 2012 16:51:16 +0200 Subject: mod_dialback: Correctly check if a connection was destroyed (thanks iron) --- plugins/mod_dialback.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_dialback.lua') diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index 69616a57..b2f84603 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -117,7 +117,7 @@ module:hook("stanza/jabber:server:dialback:verify", function(event) log("warn", "authoritative server for %s denied the key", attr.from or "(unknown)"); valid = "invalid"; end - if not dialback_verifying.sends2s then + if dialback_verifying.destroyed then log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", tostring(dialback_verifying):match("%w+$")); else dialback_verifying.sends2s( -- cgit v1.2.3