fix(cluster-link): clear exit signal of failed-to-connect client
This commit is contained in:
parent
d0df4de2a3
commit
780a0bf807
|
@ -145,12 +145,19 @@ start_link_client(TargetCluster, Actor) ->
|
|||
{ok, _Props} ->
|
||||
{ok, Pid};
|
||||
Error ->
|
||||
_ = flush_link_signal(Pid),
|
||||
Error
|
||||
end;
|
||||
Error ->
|
||||
Error
|
||||
end.
|
||||
|
||||
flush_link_signal(Pid) ->
|
||||
receive
|
||||
{'EXIT', Pid, _} -> ok
|
||||
after 1 -> timeout
|
||||
end.
|
||||
|
||||
refine_client_options(Options = #{clientid := ClientID}, Actor) ->
|
||||
Suffix =
|
||||
case Actor of
|
||||
|
|
Loading…
Reference in New Issue