Skip to content

Commit a34c3f3

Browse files
committed
Set future to null after resolution
1 parent 7f8b287 commit a34c3f3

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
@@ -93,6 +93,7 @@ private function selectWorker(): Worker
9393
if ($this->workerStorage->count() < $this->workerLimit) {
9494
$this->pendingWorker = async($this->pool->getWorker(...));
9595
$worker = $this->pendingWorker->await();
96+
$this->pendingWorker = null;
9697

9798
$this->workerStorage[$worker] = 1;
9899

0 commit comments

Comments
 (0)