Changeset

5113:3393cab2dd6b

mod_dialback: Correctly check if a connection was destroyed (thanks iron)
author Kim Alvefur <zash@zash.se>
date Wed, 05 Sep 2012 16:51:16 +0200
parents 5112:8b94a8d92cf3
children 5114:4c2c04a49938 5115:3939960b3c07
files plugins/mod_dialback.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Mon Sep 03 04:22:40 2012 +0200
+++ b/plugins/mod_dialback.lua	Wed Sep 05 16:51:16 2012 +0200
@@ -117,7 +117,7 @@
 				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(