From 60bafc0c6d428aa286c4906bc203c5c2d720eea8 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Sat, 7 Mar 2015 21:16:58 -0500 Subject: [PATCH] Fix IngestTaskScheduler task cancellation --- Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java b/Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java index 6f5ffe3e65..63b41b76d1 100755 --- a/Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/IngestTasksScheduler.java @@ -251,7 +251,6 @@ final class IngestTasksScheduler { this.removeTasksForJob(this.directoryTasks, jobId); this.removeTasksForJob(this.pendingFileTasks, jobId); this.removeTasksForJob(this.pendingDataSourceTasks, jobId); - this.removeTasksForJob(this.tasksInProgress, jobId); this.shuffleFileTaskQueues(); } @@ -465,6 +464,7 @@ final class IngestTasksScheduler { while (iterator.hasNext()) { IngestTask task = iterator.next(); if (task.getIngestJob().getId() == jobId) { + this.tasksInProgress.remove(task); iterator.remove(); } }