aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ejabberd_c2s.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl
index 8a634b21f..e6667aa8d 100644
--- a/src/ejabberd_c2s.erl
+++ b/src/ejabberd_c2s.erl
@@ -763,8 +763,7 @@ wait_for_feature_request({xmlstreamelement, El},
children =
[#xmlel{name = Error, attrs = [],
children = []}]}),
- {next_state, wait_for_feature_request, StateData,
- ?C2S_OPEN_TIMEOUT};
+ fsm_next_state(wait_for_feature_request, StateData);
{error, Error} ->
send_element(StateData,
#xmlel{name = <<"failure">>,
@@ -1689,7 +1688,7 @@ handle_info({force_update_presence, LUser}, StateName,
StateData2;
_ -> StateData
end,
- {next_state, StateName, NewStateData};
+ fsm_next_state(StateName, NewStateData);
handle_info({broadcast, Type, From, Packet}, StateName, StateData) ->
Recipients = ejabberd_hooks:run_fold(
c2s_broadcast_recipients, StateData#state.server,