From 5450ed00ba7778b72025e0c61f383595d4b1db96 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 8 Dec 2025 16:03:06 +0800 Subject: [PATCH] fix host --- apps/iot/src/iot_host_sup.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/iot/src/iot_host_sup.erl b/apps/iot/src/iot_host_sup.erl index 9b12b06..4762613 100644 --- a/apps/iot/src/iot_host_sup.erl +++ b/apps/iot/src/iot_host_sup.erl @@ -23,6 +23,8 @@ init([]) -> ensured_host_started(UUID) when is_binary(UUID) -> case iot_host:get_pid(UUID) of undefined -> + %% 尝试删除下host对应的信息 + delete_host(UUID), case supervisor:start_child(?MODULE, child_spec(UUID)) of {ok, Pid} when is_pid(Pid) -> {ok, Pid};