mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(portal): don't use process.alive on remote pid (#9964)
This can be removed, since we handle the ArgumentError in the link operation.
This commit is contained in:
@@ -39,15 +39,7 @@ defmodule Domain.Replication.Manager do
|
||||
start_connection(state)
|
||||
|
||||
pid when is_pid(pid) ->
|
||||
case Process.alive?(pid) do
|
||||
true ->
|
||||
# Found existing alive process, link to it
|
||||
link_existing_pid(pid, state)
|
||||
|
||||
false ->
|
||||
# Process is dead but still registered, try to start a new one
|
||||
start_connection(state)
|
||||
end
|
||||
link_existing_pid(pid, state)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user