Skip to content

Commit

Permalink
fix: handle all exit exceptions when coordinator calls member process
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Dec 14, 2024
1 parent 40a6ef6 commit 21c4f1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brod_group_coordinator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@
try
EXPR
catch
exit:{noproc, {gen_server, call, [MemberPid | _]}} ->
exit({shutdown, member_down})
exit:{noproc, _} ->
exit({shutdown, member_down});
exit:{Reason, _} ->
exit({shutdown, {member_down, Reason}})
end).

-type config() :: brod:group_config().
Expand Down

0 comments on commit 21c4f1a

Please sign in to comment.