Merge pull request #96 from Shahelm/fix-bug-in-pool

Fixed a bug in the implementation of a design pattern: Pool.
This commit is contained in:
Dominik Liebler 2014-07-06 11:02:49 +02:00
commit 5412ff92ad

View File

@ -20,7 +20,7 @@ class Processor
if ($this->processing++ < $this->maxProcesses) {
$this->createWorker($image);
} else {
$this->pushToWaitingQueue($worker);
$this->pushToWaitingQueue($image);
}
}