25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

XEP-0198: Cosmetic change: Omit redundant guard

The stream management state is never 'pending' when the c2s FSM is in
the 'session_established' state.
This commit is contained in:
Holger Weiss 2014-05-23 20:46:17 +02:00
parent 6baf3a24de
commit 737b0ae5dc

View File

@ -1170,8 +1170,7 @@ session_established({xmlstreamerror, _}, StateData) ->
{stop, normal, StateData};
session_established(closed, StateData)
when StateData#state.mgmt_timeout > 0,
StateData#state.mgmt_state == active orelse
StateData#state.mgmt_state == pending ->
StateData#state.mgmt_state == active ->
log_pending_state(StateData),
fsm_next_state(wait_for_resume, StateData#state{mgmt_state = pending});
session_established(closed, StateData) ->