fix host
This commit is contained in:
parent
b36fe3aca6
commit
5450ed00ba
@ -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};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user