mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-04 08:16:16 +00:00
Prevent shutDown from being called on ingest pipelines that haven't started.
This commit is contained in:
@@ -386,9 +386,11 @@ final class DataSourceIngestJob {
|
||||
// errors are likely redundant.
|
||||
while (!this.fileIngestPipelinesQueue.isEmpty()) {
|
||||
pipeline = this.fileIngestPipelinesQueue.poll();
|
||||
List<IngestModuleError> shutDownErrors = pipeline.shutDown();
|
||||
if (!shutDownErrors.isEmpty()) {
|
||||
logIngestModuleErrors(shutDownErrors);
|
||||
if(pipeline.isRunning()){
|
||||
List<IngestModuleError> shutDownErrors = pipeline.shutDown();
|
||||
if (!shutDownErrors.isEmpty()) {
|
||||
logIngestModuleErrors(shutDownErrors);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -565,7 +567,9 @@ final class DataSourceIngestJob {
|
||||
List<IngestModuleError> errors = new ArrayList<>();
|
||||
while (!this.fileIngestPipelinesQueue.isEmpty()) {
|
||||
FileIngestPipeline pipeline = fileIngestPipelinesQueue.poll();
|
||||
errors.addAll(pipeline.shutDown());
|
||||
if(pipeline.isRunning()){
|
||||
errors.addAll(pipeline.shutDown());
|
||||
}
|
||||
}
|
||||
if (!errors.isEmpty()) {
|
||||
logIngestModuleErrors(errors);
|
||||
|
||||
Reference in New Issue
Block a user