diff options
author | Kim Alvefur <zash@zash.se> | 2012-09-05 16:51:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-09-05 16:51:16 +0200 |
commit | e8dc58ee2d83f8d33ebe45033e581b4d91011db6 (patch) | |
tree | 26b2676d8f1f52bda135b58d35369190dd605ff8 /plugins/mod_dialback.lua | |
parent | 9b435d76fbbe2f6a516ac1e402f2830597cf62bd (diff) | |
download | prosody-e8dc58ee2d83f8d33ebe45033e581b4d91011db6.tar.gz prosody-e8dc58ee2d83f8d33ebe45033e581b4d91011db6.zip |
mod_dialback: Correctly check if a connection was destroyed (thanks iron)
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r-- | plugins/mod_dialback.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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( |