diff --git a/src/Utils.php b/src/Utils.php index 45b0893..3193d2a 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -144,7 +144,9 @@ function ($value, $idx) use (&$results): void { $results[$idx] = $value; }, function ($reason, $idx, Promise $aggregate): void { - $aggregate->reject($reason); + if (Is::pending($aggregate)) { + $aggregate->reject($reason); + } } )->then(function () use (&$results) { ksort($results);