From 402c87a8e572b3cf217cd95c85b0fe6fe2e385ce Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Wed, 22 Nov 2017 17:59:04 -0600 Subject: [PATCH] Fix bug in FixedPool when used with closures Do not check for override method in FixedPool::execute() as its already taken care of by Process::__construct(). --- src/FixedPool.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/FixedPool.php b/src/FixedPool.php index de797f6..3e0710d 100644 --- a/src/FixedPool.php +++ b/src/FixedPool.php @@ -31,8 +31,6 @@ public function __construct($max = 4) public function execute(Process $process) { - Utils::checkOverwriteRunMethod(get_class($process)); - if ($this->aliveCount() < $this->max && !$process->isStarted()) { $process->start(); } @@ -64,4 +62,4 @@ public function wait($block = false, $interval = 100) } while ($block); } -} \ No newline at end of file +}