Skip to content

Commit

Permalink
Fix issue with stop_children in worker_sup
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jan 15, 2024
1 parent 3dc8f81 commit 9578920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/users/amoc_users_worker_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ handle_cast({start_children, Scenario, Ids, ScenarioState}, #state{tid = Tid} =
ok
end || Id <- Ids],
{noreply, State};
handle_cast({stop_child, ForceRemove}, #state{tid = Tid} = State) ->
Pids = case ets:match_object(Tid, '$1', 1) of
handle_cast({stop_children, Int, ForceRemove}, #state{tid = Tid} = State) ->
Pids = case ets:match_object(Tid, '$1', Int) of
{[{Pid, _Id}], _} -> [Pid];
'$end_of_table' -> []
end,
Expand Down

0 comments on commit 9578920

Please sign in to comment.