From 2e7f2446d036d44c68025df9a9c503b511acc0a3 Mon Sep 17 00:00:00 2001 From: "alex.ma" Date: Sun, 15 Jun 2014 17:40:03 +0300 Subject: [PATCH] Fixed a bug in the implementation of a design pattern: Pool. --- Creational/Pool/Processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Creational/Pool/Processor.php b/Creational/Pool/Processor.php index 0bb5e67..957e91f 100644 --- a/Creational/Pool/Processor.php +++ b/Creational/Pool/Processor.php @@ -20,7 +20,7 @@ class Processor if ($this->processing++ < $this->maxProcesses) { $this->createWorker($image); } else { - $this->pushToWaitingQueue($worker); + $this->pushToWaitingQueue($image); } }