diff --git a/apps/iot/src/iot_api.erl b/apps/iot/src/iot_api.erl index 0383f5f..a5fed49 100644 --- a/apps/iot/src/iot_api.erl +++ b/apps/iot/src/iot_api.erl @@ -106,11 +106,11 @@ handle_cast({ai_event, Id}, State = #state{}) -> {stop, Reason :: term(), NewState :: #state{}}). %% Task进程挂掉 handle_info({'DOWN', _MRef, process, _Pid, normal}, State) -> - {keep_state, State}; + {noreply, State}; handle_info({'DOWN', _MRef, process, _Pid, Reason}, State) -> lager:notice("[iot_api] task process down with reason: ~p", [Reason]), - {keep_state, State}; + {noreply, State}; handle_info(_Info, State = #state{}) -> {noreply, State}.