From 486a3e4c7a885b61f99cde5975d975d368c3439b Mon Sep 17 00:00:00 2001 From: Yves Chedemois Date: Thu, 22 Oct 2015 13:47:10 +0200 Subject: [PATCH] Pool $maxSize was ignored --- src/Worker/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Pool.php b/src/Worker/Pool.php index 34310c4..d7e91e1 100644 --- a/src/Worker/Pool.php +++ b/src/Worker/Pool.php @@ -75,7 +75,7 @@ class Pool implements PoolInterface public function __construct($minSize = 0, $maxSize = 0, WorkerFactoryInterface $factory = null) { $minSize = $minSize ?: self::DEFAULT_MIN_SIZE; - $maxSize = $minSize ?: self::DEFAULT_MAX_SIZE; + $maxSize = $maxSize ?: self::DEFAULT_MAX_SIZE; if (!is_int($minSize) || $minSize < 0) { throw new InvalidArgumentError('Minimum size must be a non-negative integer.');