Better handling of a task not capable to start on a device

This commit is contained in:
Pavel Shevaev 2023-11-15 12:45:57 +03:00
parent 33230ba98e
commit f3dae81643
1 changed files with 3 additions and 2 deletions

View File

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