# HG changeset patch # User Matthew Wild # Date 1230172256 0 # Node ID d0a8ff9ba3e07669c5df1c5f4c84ffcdf3ae6003 # Parent e1b3a472ca002cad59809c0386543b7b2c86c150 Destroy session on failed dialback instead of throwing an error diff -r e1b3a472ca00 -r d0a8ff9ba3e0 plugins/mod_dialback.lua --- a/plugins/mod_dialback.lua Thu Dec 25 01:37:13 2008 +0000 +++ b/plugins/mod_dialback.lua Thu Dec 25 02:30:56 2008 +0000 @@ -22,6 +22,7 @@ local send_s2s = require "core.s2smanager".send_to_host; local s2s_make_authenticated = require "core.s2smanager".make_authenticated; local s2s_verify_dialback = require "core.s2smanager".verify_dialback; +local s2s_destroy_session = require "core.s2smanager".destroy_session; local st = require "util.stanza"; @@ -120,7 +121,6 @@ if stanza.attr.type == "valid" then s2s_make_authenticated(origin, attr.from); else - -- FIXME: Waiting on #33 - error("dialback failed!"); + s2s_destroy_session(origin) end end);