Skip to content

Commit 3c57ba9

Browse files
committed
Set future to null after resolution
(cherry picked from commit a34c3f3)
1 parent f168385 commit 3c57ba9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Driver/ParallelFilesystemDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private function selectWorker(): Worker
6767
if ($this->workerStorage->count() < $this->pool->getWorkerLimit()) {
6868
$this->pendingWorker = async($this->pool->getWorker(...));
6969
$worker = $this->pendingWorker->await();
70+
$this->pendingWorker = null;
7071

7172
$this->workerStorage[$worker] = 1;
7273

0 commit comments

Comments
 (0)