From df127490ed25538b29cbd9b9f442d1240339347a Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sun, 24 Dec 2023 16:07:30 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_api.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}.