mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Merge pull request #2845 from sleuthkit/eam_shutdown_workaround
Added isEnabled workaround to shutdown() method so that it doesn't at…
This commit is contained in:
commit
256ce0f877
@ -152,6 +152,17 @@ class IngestModule implements FileIngestModule {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void shutDown() {
|
public void shutDown() {
|
||||||
|
if (Boolean.parseBoolean(ModuleSettings.getConfigSetting("EnterpriseArtifactManager", "db.enabled")) == false
|
||||||
|
|| EamDb.getInstance().isEnabled() == false) {
|
||||||
|
/*
|
||||||
|
* Not signaling an error for now. This is a workaround for the way
|
||||||
|
* all newly didscovered ingest modules are automatically anabled.
|
||||||
|
*
|
||||||
|
* TODO (JIRA-2731): Add isEnabled API for ingest modules.
|
||||||
|
*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
EamDb dbManager = EamDb.getInstance();
|
EamDb dbManager = EamDb.getInstance();
|
||||||
try {
|
try {
|
||||||
dbManager.bulkInsertArtifacts();
|
dbManager.bulkInsertArtifacts();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user