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, _Props} ->
|
||||||
{ok, Pid};
|
{ok, Pid};
|
||||||
Error ->
|
Error ->
|
||||||
|
_ = flush_link_signal(Pid),
|
||||||
Error
|
Error
|
||||||
end;
|
end;
|
||||||
Error ->
|
Error ->
|
||||||
Error
|
Error
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
flush_link_signal(Pid) ->
|
||||||
|
receive
|
||||||
|
{'EXIT', Pid, _} -> ok
|
||||||
|
after 1 -> timeout
|
||||||
|
end.
|
||||||
|
|
||||||
refine_client_options(Options = #{clientid := ClientID}, Actor) ->
|
refine_client_options(Options = #{clientid := ClientID}, Actor) ->
|
||||||
Suffix =
|
Suffix =
|
||||||
case Actor of
|
case Actor of
|
||||||
|
|
Loading…
Reference in New Issue