Fix the promise resolution for the cleanup logic (#11620)
parent
370b394714
commit
087b21d687
|
@ -654,10 +654,10 @@ class InstallationManager
|
|||
$promises[] = new \React\Promise\Promise(static function ($resolve) use ($cleanup): void {
|
||||
$promise = $cleanup();
|
||||
if (!$promise instanceof PromiseInterface) {
|
||||
$resolve();
|
||||
$resolve(null);
|
||||
} else {
|
||||
$promise->then(static function () use ($resolve): void {
|
||||
$resolve();
|
||||
$resolve(null);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue