Skip to content

Commit

Permalink
fix: graceful shutdown from handle_info/1
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Pizzichini committed Aug 30, 2024
1 parent 98454b3 commit 0e85e24
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, {:shutdown, reason, %{adapter: adapter, state: state}}}
{:stop, {:shutdown, {reason, %{adapter: adapter, state: state}}}}

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

0 comments on commit 0e85e24

Please sign in to comment.