mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-17 05:11:18 +02:00
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:
@@ -20,7 +20,7 @@ class Processor
|
|||||||
if ($this->processing++ < $this->maxProcesses) {
|
if ($this->processing++ < $this->maxProcesses) {
|
||||||
$this->createWorker($image);
|
$this->createWorker($image);
|
||||||
} else {
|
} else {
|
||||||
$this->pushToWaitingQueue($worker);
|
$this->pushToWaitingQueue($image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user