mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
improved s2s connections clean up (EJAB-1202)
This commit is contained in:
parent
64f8cf8a9e
commit
c8c7169465
@ -910,6 +910,8 @@ send_db_request(StateData) ->
|
|||||||
Key ->
|
Key ->
|
||||||
Key
|
Key
|
||||||
end,
|
end,
|
||||||
|
NewStateData = StateData#state{new = New},
|
||||||
|
try
|
||||||
case New of
|
case New of
|
||||||
false ->
|
false ->
|
||||||
ok;
|
ok;
|
||||||
@ -922,9 +924,14 @@ send_db_request(StateData) ->
|
|||||||
ok;
|
ok;
|
||||||
{_Pid, Key2, SID} ->
|
{_Pid, Key2, SID} ->
|
||||||
send_element(StateData, exmpp_dialback:verify_request(
|
send_element(StateData, exmpp_dialback:verify_request(
|
||||||
StateData#state.myname, StateData#state.server, SID, Key2))
|
StateData#state.myname,
|
||||||
|
StateData#state.server, SID, Key2))
|
||||||
end,
|
end,
|
||||||
{next_state, wait_for_validation, StateData#state{new = New}, ?FSMTIMEOUT*6}.
|
{next_state, wait_for_validation, NewStateData, ?FSMTIMEOUT*6}
|
||||||
|
catch
|
||||||
|
_:_ ->
|
||||||
|
{stop, normal, NewStateData}
|
||||||
|
end.
|
||||||
|
|
||||||
|
|
||||||
is_verify_res(#xmlel{ns = ?NS_DIALBACK, name = 'result',
|
is_verify_res(#xmlel{ns = ?NS_DIALBACK, name = 'result',
|
||||||
|
Loading…
Reference in New Issue
Block a user