Skip to content

Commit

Permalink
Avoid crash.log error on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Mar 4, 2019
1 parent 66a70a8 commit 01291f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/poolboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ handle_info({'EXIT', Pid, _Reason}, StateName, State) ->
handle_info(_Info, StateName, State) ->
{next_state, StateName, State}.

terminate(shutdown, _StateName, #state{workers=Workers}) ->
lists:foreach(fun (W) -> unlink(W) end, queue:to_list(Workers));
terminate(_Reason, _StateName, _State) ->
ok.

Expand Down

0 comments on commit 01291f7

Please sign in to comment.