mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01: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:
commit
5412ff92ad
@ -20,7 +20,7 @@ class Processor
|
||||
if ($this->processing++ < $this->maxProcesses) {
|
||||
$this->createWorker($image);
|
||||
} else {
|
||||
$this->pushToWaitingQueue($worker);
|
||||
$this->pushToWaitingQueue($image);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user