Fixed composer error
This commit is contained in:
parent
f5919aad4a
commit
6ebca949c0
1 changed files with 4 additions and 2 deletions
|
@ -390,8 +390,9 @@ class Builds extends Action
|
||||||
$response = null;
|
$response = null;
|
||||||
$err = null;
|
$err = null;
|
||||||
|
|
||||||
if ($build->getAttribute('status') === 'cancelled')
|
if ($build->getAttribute('status') === 'cancelled') {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Co::join([
|
Co::join([
|
||||||
Co\go(function () use ($executor, &$response, $project, $deployment, $source, $function, $runtime, $vars, $command, &$err) {
|
Co\go(function () use ($executor, &$response, $project, $deployment, $source, $function, $runtime, $vars, $command, &$err) {
|
||||||
|
@ -459,8 +460,9 @@ class Builds extends Action
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($err) {
|
if ($err) {
|
||||||
if ($build->getAttribute('status') === 'cancelled')
|
if ($build->getAttribute('status') === 'cancelled') {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
throw $err;
|
throw $err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue