Permalink
Browse files

Fix wait_valid to stop relying on term ordering rules to be correct #24

  • Loading branch information...
1 parent 74e61fd commit 0341be6e0360d440fce7600263cbec7912ae0fdc @devinus committed Apr 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/poolboy.erl
View
@@ -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),

0 comments on commit 0341be6

Please sign in to comment.