mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
Destroy session on failed dialback instead of throwing an error
This commit is contained in:
parent
449e72c736
commit
2c5c164889
1 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
||||||
local send_s2s = require "core.s2smanager".send_to_host;
|
local send_s2s = require "core.s2smanager".send_to_host;
|
||||||
local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
|
local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
|
||||||
local s2s_verify_dialback = require "core.s2smanager".verify_dialback;
|
local s2s_verify_dialback = require "core.s2smanager".verify_dialback;
|
||||||
|
local s2s_destroy_session = require "core.s2smanager".destroy_session;
|
||||||
|
|
||||||
local st = require "util.stanza";
|
local st = require "util.stanza";
|
||||||
|
|
||||||
|
@ -120,7 +121,6 @@ module:add_handler({ "s2sout_unauthed", "s2sout" }, "result", xmlns_dialback,
|
||||||
if stanza.attr.type == "valid" then
|
if stanza.attr.type == "valid" then
|
||||||
s2s_make_authenticated(origin, attr.from);
|
s2s_make_authenticated(origin, attr.from);
|
||||||
else
|
else
|
||||||
-- FIXME: Waiting on #33
|
s2s_destroy_session(origin)
|
||||||
error("dialback failed!");
|
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue