this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix supervisor trying to call itself

garrison 271c9bfc eced367b

+5 -1
+5 -1
lib/trinity/scheduler/simulation_supervisor.ex
··· 36 36 37 37 @spec spawn_child(GenServer.server, function) :: pid 38 38 def spawn_child(server, fun) do 39 - GenServer.call(server, {:spawn_child, fun}) 39 + # This is a bit ridiculous 40 + case server == self() do 41 + true -> spawn_sim_child(%Simulation{} = Process.get(simulation_key()), fun) 42 + false -> GenServer.call(server, {:spawn_child, fun}) 43 + end 40 44 end 41 45 42 46 def kill_node(server, node) do