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};