Fixed a bug in the implementation of a design pattern: Pool.

This commit is contained in:
alex.ma
2014-06-15 17:40:03 +03:00
parent d24be57acc
commit 2e7f2446d0

View File

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