fix
This commit is contained in:
parent
f117a57be6
commit
df127490ed
@ -106,11 +106,11 @@ handle_cast({ai_event, Id}, State = #state{}) ->
|
|||||||
{stop, Reason :: term(), NewState :: #state{}}).
|
{stop, Reason :: term(), NewState :: #state{}}).
|
||||||
%% Task进程挂掉
|
%% Task进程挂掉
|
||||||
handle_info({'DOWN', _MRef, process, _Pid, normal}, State) ->
|
handle_info({'DOWN', _MRef, process, _Pid, normal}, State) ->
|
||||||
{keep_state, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_info({'DOWN', _MRef, process, _Pid, Reason}, State) ->
|
handle_info({'DOWN', _MRef, process, _Pid, Reason}, State) ->
|
||||||
lager:notice("[iot_api] task process down with reason: ~p", [Reason]),
|
lager:notice("[iot_api] task process down with reason: ~p", [Reason]),
|
||||||
{keep_state, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_info(_Info, State = #state{}) ->
|
handle_info(_Info, State = #state{}) ->
|
||||||
{noreply, State}.
|
{noreply, State}.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user