diff options
Diffstat (limited to 'shard/lib/app/identity.ex')
-rw-r--r-- | shard/lib/app/identity.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex index 390ef6d..06bc225 100644 --- a/shard/lib/app/identity.ex +++ b/shard/lib/app/identity.ex @@ -56,8 +56,10 @@ defmodule SApp.Identity do id = SData.term_hash manifest case Shard.Manager.find_proc id do nil -> - {:ok, pid} = Shard.Manifest.start manifest - pid + case Shard.Manifest.start manifest do + {:ok, pid} -> pid + {:error, :redundant} -> find_proc(pk) + end pid -> pid end end |