fix: ignore all other events
This commit is contained in:
parent
3524fb6994
commit
bbbfea1b5b
|
@ -273,7 +273,10 @@ handle_event({call, From}, health_check, stopped, _Data) ->
|
||||||
Actions = [{reply, From, {error, stopped}}],
|
Actions = [{reply, From, {error, stopped}}],
|
||||||
{keep_state_and_data, Actions};
|
{keep_state_and_data, Actions};
|
||||||
handle_event({call, From}, health_check, _State, Data) ->
|
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
|
%% internal functions
|
||||||
|
|
Loading…
Reference in New Issue