From 80df1dd33e3b69d352c3b6e921c3e8075b6bd47f Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Tue, 21 Jul 2020 17:30:34 +0200 Subject: [PATCH] Fixed bug where SuperVisor cancelled after every cycle. --- src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php b/src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php index f871c2a..18c7fa2 100644 --- a/src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php +++ b/src/FuzeWorks/Async/Supervisors/ParallelSuperVisor.php @@ -261,7 +261,7 @@ class ParallelSuperVisor implements SuperVisor // If all are finished and none are delayed if ($allCompleted && !$anyDelayed) return SuperVisor::FINISHED; - if (!$allCompleted && $anyDelayed) + elseif ($allCompleted && $anyDelayed) return SuperVisor::CONSTRAINED; else return SuperVisor::RUNNING;