Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/broadway/topology/terminator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Broadway.Topology.Terminator do

@spec trap_exit(GenServer.server()) :: :ok
def trap_exit(terminator) do
GenServer.cast(terminator, :trap_exit)
GenServer.call(terminator, :trap_exit)
end

@impl true
Expand All @@ -24,9 +24,9 @@ defmodule Broadway.Topology.Terminator do
end

@impl true
def handle_cast(:trap_exit, state) do
def handle_call(:trap_exit, _from, state) do
Process.flag(:trap_exit, true)
{:noreply, state}
{:reply, :ok, state}
end

@impl true
Expand Down
Loading