# HG changeset patch # User Kim Alvefur # Date 1346856676 -7200 # Node ID 3393cab2dd6b1cee7e19bd4466cd6aa47e8e8cfb # Parent 8b94a8d92cf3461e49f46cbce5d20d65d309b7f7 mod_dialback: Correctly check if a connection was destroyed (thanks iron) diff -r 8b94a8d92cf3 -r 3393cab2dd6b plugins/mod_dialback.lua --- 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(