From 306cb87d67292eb4fb0e5a4bf4d9c599642cdf66 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 20 Sep 2023 21:34:04 +0200 Subject: [PATCH] Fix Check for subjobs --- Tranga/Jobs/JobBoss.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 8640600..8ddf01d 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -55,7 +55,7 @@ public class JobBoss : GlobalBase Log($"Removing {job}"); job.Cancel(); this.jobs.Remove(job); - if(job.subJobs is not null) + if(job.subJobs is not null && job.subJobs.Any()) RemoveJobs(job.subJobs); ExportJob(job); }