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