Skip to content

Commit

Permalink
Merge branch 'pr-1871'
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Sep 19, 2023
2 parents af66ce9 + 7f7d9bb commit a34331f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import iped.engine.io.MetadataInputStreamFactory;
import iped.engine.search.IPEDSearcher;
import iped.engine.search.LuceneSearchResult;
import iped.engine.task.EmbeddedDiskProcessTask;
import iped.engine.task.HashDBLookupTask;
import iped.engine.task.HashTask;
import iped.engine.task.MinIOTask.MinIOInputInputStreamFactory;
Expand Down Expand Up @@ -127,7 +128,7 @@ public void read(File file) throws Exception {
// Configuração para não expandir containers
CategoryToExpandConfig expandConfig = ConfigurationManager.get().findObject(CategoryToExpandConfig.class);
expandConfig.setEnabled(false);

EmbeddedDiskProcessTask.setEnabled(false);
CarverTask.setEnabled(false);
LedCarveTask.setEnabled(false);
HashDBLookupTask.setEnabled(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ public class EmbeddedDiskProcessTask extends AbstractTask {

private static Object lock = new Object();

private boolean enabled = true;
private static boolean enabled = true;

private ArrayList<IItem> deletedDisks = new ArrayList<>();

public static void setEnabled(boolean value) {
enabled = value;
}

@Override
public boolean isEnabled() {
return enabled;
Expand Down

0 comments on commit a34331f

Please sign in to comment.