1
0
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:
coderstephen 2015-08-28 00:20:32 -05:00
parent 56b9360e0d
commit 65f17be82e

View File

@ -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();
}
}