Software /
code /
prosody
Diff
plugins/mod_dialback.lua @ 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 |
parent | 5019:017e864b459d |
child | 5341:760c22c822be |
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(