Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e7f244

Browse files
author
alex.ma
committed
Fixed a bug in the implementation of a design pattern: Pool.
1 parent d24be57 commit 2e7f244

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)