From 45f7560957e1600c7617ec80aebad7f7a3d7ce5b Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 31 Jul 2024 20:09:51 +0800 Subject: [PATCH] fix jinzhi --- apps/iot/src/endpoint/iot_jinzhi_endpoint.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl b/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl index 674ac37..3a74dcb 100644 --- a/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl +++ b/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl @@ -121,7 +121,7 @@ handle_info({timeout, _, {repost_ticker, Id, ReqBody}}, State = #state{timer_map catch do_post(Url, Id, ReqBody), TimerRef = erlang:start_timer(?RETRY_INTERVAL, self(), {repost_ticker, Id, ReqBody}), - {keep_state, State#state{timer_map = maps:put(Id, TimerRef, TimerMap)}}; + {noreply, State#state{timer_map = maps:put(Id, TimerRef, TimerMap)}}; handle_info({'DOWN', _MRef, process, _Pid, normal}, State) -> {noreply, State};