fix
This commit is contained in:
parent
1c4fbf6415
commit
30c0d6c198
@ -135,6 +135,8 @@ start_link(Name, UUID) when is_atom(Name), is_binary(UUID) ->
|
|||||||
%% gen_statem:start_link/[3,4], this function is called by the new
|
%% gen_statem:start_link/[3,4], this function is called by the new
|
||||||
%% process to initialize.
|
%% process to initialize.
|
||||||
init([UUID]) ->
|
init([UUID]) ->
|
||||||
|
erlang:process_flag(trap_exit, true),
|
||||||
|
|
||||||
%% 重启时,认为主机是离线状态; 等待主机主动建立连接
|
%% 重启时,认为主机是离线状态; 等待主机主动建立连接
|
||||||
{ok, _} = host_bo:change_status(UUID, ?HOST_OFFLINE),
|
{ok, _} = host_bo:change_status(UUID, ?HOST_OFFLINE),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user