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
|
||||
end,
|
||||
NewStateData = StateData#state{new = New},
|
||||
try
|
||||
case New of
|
||||
false ->
|
||||
ok;
|
||||
@ -922,9 +924,14 @@ send_db_request(StateData) ->
|
||||
ok;
|
||||
{_Pid, Key2, SID} ->
|
||||
send_element(StateData, exmpp_dialback:verify_request(
|
||||
StateData#state.myname, StateData#state.server, SID, Key2))
|
||||
StateData#state.myname,
|
||||
StateData#state.server, SID, Key2))
|
||||
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',
|
||||
|
Loading…
Reference in New Issue
Block a user