mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_dialback: Correctly check if a connection was destroyed (thanks iron)
This commit is contained in:
parent
ddd751aed9
commit
d617081ac4
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue