Skip to content

Commit

Permalink
Merge pull request #12 from martinsumner/develop-2.9
Browse files Browse the repository at this point in the history
Avoid crash.log error on shutdown
  • Loading branch information
martinsumner authored Mar 4, 2019
2 parents 66a70a8 + 01291f7 commit b6218ae
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 b6218ae

Please sign in to comment.