mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-16 12:56:21 +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) {
|
||||
$this->createWorker($image);
|
||||
} else {
|
||||
$this->pushToWaitingQueue($worker);
|
||||
$this->pushToWaitingQueue($image);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user