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:
Jamil
2025-07-22 12:42:51 -04:00
committed by GitHub
parent 2c3692582b
commit f41a6f9e0b

View File

@@ -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