Skip to content

Commit 5412ff9

Browse files
author
Dominik Liebler
committed
Merge pull request DesignPatternsPHP#96 from Shahelm/fix-bug-in-pool
Fixed a bug in the implementation of a design pattern: Pool.
2 parents d24be57 + 2e7f244 commit 5412ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Creational/Pool/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function process($image)
2020
if ($this->processing++ < $this->maxProcesses) {
2121
$this->createWorker($image);
2222
} else {
23-
$this->pushToWaitingQueue($worker);
23+
$this->pushToWaitingQueue($image);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)