mirror of
https://github.com/danog/parallel.git
synced 2025-01-22 22:11:11 +01:00
Call done() after creating coroutine
This commit is contained in:
parent
56b9360e0d
commit
65f17be82e
@ -233,7 +233,8 @@ class WorkerPool
|
||||
|
||||
// Spawn a new coroutine to process the busy queue if not empty.
|
||||
if (!$this->busyQueue->isEmpty()) {
|
||||
new Coroutine($this->processBusyQueue());
|
||||
$coroutine = new Coroutine($this->processBusyQueue());
|
||||
$coroutine->done();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user