Skip to content

Commit

Permalink
fix: shutdown genserver when receiving an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Pizzichini committed Aug 29, 2024
1 parent b03f79e commit 7fe76e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pigeon/dispatcher_worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule Pigeon.DispatcherWorker do
{:noreply, %{adapter: adapter, state: new_state}}

{:stop, reason} ->
{:stop, reason, %{adapter: adapter, state: state}}
{:shutdown, reason, %{adapter: adapter, state: state}}

{:stop, reason, new_state} ->
{:stop, reason, %{adapter: adapter, state: new_state}}
Expand Down

0 comments on commit 7fe76e2

Please sign in to comment.