Skip to content

Commit

Permalink
Fix wait_valid to stop relying on term ordering rules to be correct #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Torres committed Apr 5, 2013
1 parent 74e61fd commit 0341be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poolboy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ prepopulate(N, Sup, Workers) ->
add_waiting(Pid, Timeout, Queue) ->
queue:in({Pid, Timeout, os:timestamp()}, Queue).

wait_valid(infinity, _Timeout) ->
wait_valid(_StartTime, infinity) ->
true;
wait_valid(StartTime, Timeout) ->
Waited = timer:now_diff(os:timestamp(), StartTime),
Expand Down

0 comments on commit 0341be6

Please sign in to comment.