This commit is contained in:
anlicheng 2025-12-08 16:03:06 +08:00
parent b36fe3aca6
commit 5450ed00ba

View File

@ -23,6 +23,8 @@ init([]) ->
ensured_host_started(UUID) when is_binary(UUID) -> ensured_host_started(UUID) when is_binary(UUID) ->
case iot_host:get_pid(UUID) of case iot_host:get_pid(UUID) of
undefined -> undefined ->
%% host对应的信息
delete_host(UUID),
case supervisor:start_child(?MODULE, child_spec(UUID)) of case supervisor:start_child(?MODULE, child_spec(UUID)) of
{ok, Pid} when is_pid(Pid) -> {ok, Pid} when is_pid(Pid) ->
{ok, Pid}; {ok, Pid};