diff --git a/modules/Bio/EnsEMBL/Hive/Scheduler.pm b/modules/Bio/EnsEMBL/Hive/Scheduler.pm index cdcc6aa3614c56b066db4d445bae36bad3f2fee4..3727ef1518bf3f2775e0c8670f297e5dd165a79a 100644 --- a/modules/Bio/EnsEMBL/Hive/Scheduler.pm +++ b/modules/Bio/EnsEMBL/Hive/Scheduler.pm @@ -141,7 +141,7 @@ sub schedule_workers { } # do not continue with this analysis if limiters haven't agreed on a positive number: - next unless($extra_workers_this_analysis); + next if ($extra_workers_this_analysis <= 0); # let all parties know the final decision of negotiations: foreach my $limiter (@limiters) {