Skip to content

Commit

Permalink
Correctly shutdown the worker supervisor
Browse files Browse the repository at this point in the history
Closes devinus#53.
  • Loading branch information
Devin Torres committed Jul 25, 2014
1 parent 91cf587 commit c1485b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.rebar
.eunit
.dialyzer_plt
erl_crash.dump
ebin/
ebin
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2
4 changes: 2 additions & 2 deletions src/poolboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ handle_call(get_all_monitors, _From, State) ->
Monitors = ets:tab2list(State#state.monitors),
{reply, Monitors, State};
handle_call(stop, _From, State) ->
true = exit(State#state.supervisor, shutdown),
{stop, normal, ok, State};
handle_call(_Msg, _From, State) ->
Reply = {error, invalid_message},
Expand Down Expand Up @@ -234,7 +233,8 @@ handle_info({'EXIT', Pid, _Reason}, State) ->
handle_info(_Info, State) ->
{noreply, State}.

terminate(_Reason, _State) ->
terminate(_Reason, State) ->
true = exit(State#state.supervisor, shutdown),
ok.

code_change(_OldVsn, State, _Extra) ->
Expand Down

0 comments on commit c1485b9

Please sign in to comment.