Skip to content

Commit

Permalink
Merge pull request #362 from zmstone/master
Browse files Browse the repository at this point in the history
Handle undefined fetcher in fold loop exception
  • Loading branch information
mikpe authored Nov 29, 2019
2 parents a8d243d + 440f9d1 commit 4ad175f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brod_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ do_acc(Spawn, Fetcher, Offset, Acc, Fun, [Msg | Rest], End, Count) ->
erlang:raise(C, E, Stack)
end.

kill_fetcher(undefined) -> ok;
kill_fetcher({Pid, Mref}) ->
exit(Pid, kill),
receive
Expand Down

0 comments on commit 4ad175f

Please sign in to comment.