From f3dae8164304ca57ff8a363be54be71810bb5c61 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 15 Nov 2023 12:45:57 +0300 Subject: [PATCH] Better handling of a task not capable to start on a device --- plan.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plan.inc.php b/plan.inc.php index 16a30c2..c8cb692 100644 --- a/plan.inc.php +++ b/plan.inc.php @@ -246,7 +246,8 @@ class Plan { return Amp\call(function() use($task) { - yield $this->_startAsync($task); + if(!yield $this->_startAsync($task)) + return; while(!$this->isOver()) { @@ -333,7 +334,7 @@ class Plan }); } - function _ignoreDevice($device, $reason) + function _ignoreDevice(string $device, string $reason) { $this->session->ignoreDevice($device, $reason);