fix: ignore all other events

This commit is contained in:
EMQ-YangM 2022-05-16 11:08:00 +08:00
parent 3524fb6994
commit bbbfea1b5b
1 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,10 @@ handle_event({call, From}, health_check, stopped, _Data) ->
Actions = [{reply, From, {error, stopped}}],
{keep_state_and_data, Actions};
handle_event({call, From}, health_check, _State, Data) ->
handle_health_check_event(From, Data).
handle_health_check_event(From, Data);
% Ignore all other events
handle_event(_, _, State, Data) ->
{next_state, State, Data}.
%%------------------------------------------------------------------------------
%% internal functions