Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove down monitor from state.

  • Loading branch information...
commit 675015e6dd886aee9fb9836793c02c48286542d4 1 parent 0514787
@skeltoac authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/poolboy.erl
View
10 src/poolboy.erl
@@ -155,11 +155,11 @@ handle_sync_event(_Event, _From, StateName, State) ->
{reply, Reply, StateName, State}.
handle_info({'DOWN', Ref, _, _, _}, StateName, State) ->
- case lists:keytake(Ref, 2, State#state.monitors) of
- {value, {Pid, _}, _} -> dismiss_worker(Pid);
- false -> false
- end,
- {next_state, StateName, State};
+ Monitors = case lists:keytake(Ref, 2, State#state.monitors) of
+ {value, {Pid, _}, Left} -> dismiss_worker(Pid), Left;
+ false -> State#state.monitors
+ end,
+ {next_state, StateName, State#state{monitors=Monitors}};
handle_info({'EXIT', Pid, _}, StateName, #state{worker_sup=Sup,
overflow=Overflow,
waiting=Waiting,
Please sign in to comment.
Something went wrong with that request. Please try again.