From 2ca7d23a8cc41c13701553a7dc83f6d6acc83a1c Mon Sep 17 00:00:00 2001 From: anlicheng Date: Wed, 14 Jun 2023 19:45:05 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 28da419..e13fc37 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -313,10 +313,10 @@ handle_message(#{<<"method">> := <<"ping">>, <<"params">> := CipherMetric}, Stat handle_message(Msg = #{<<"code">> := _Code, <<"assoc">> := Assoc}, State = #state{assoc_map = AssocMap}) -> case maps:take(Assoc, AssocMap) of error -> - {noreply, State}; + State; {ReceiverPid, NAssocMap} -> ReceiverPid ! {host_reply, Assoc, Msg}, - {noreply, State#state{assoc_map = NAssocMap}} + State#state{assoc_map = NAssocMap} end; handle_message(Message, State = #state{uuid = UUID, has_session = HasSession}) ->