Better handling of a task not capable to start on a device
This commit is contained in:
parent
33230ba98e
commit
f3dae81643
|
@ -246,7 +246,8 @@ class Plan
|
||||||
{
|
{
|
||||||
return Amp\call(function() use($task) {
|
return Amp\call(function() use($task) {
|
||||||
|
|
||||||
yield $this->_startAsync($task);
|
if(!yield $this->_startAsync($task))
|
||||||
|
return;
|
||||||
|
|
||||||
while(!$this->isOver())
|
while(!$this->isOver())
|
||||||
{
|
{
|
||||||
|
@ -333,7 +334,7 @@ class Plan
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function _ignoreDevice($device, $reason)
|
function _ignoreDevice(string $device, string $reason)
|
||||||
{
|
{
|
||||||
$this->session->ignoreDevice($device, $reason);
|
$this->session->ignoreDevice($device, $reason);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue