mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Merge pull request #5991 from gdicristofaro/6485-TimelineControllerIssue
6485 TimelineController handling events after the case is closed
This commit is contained in:
commit
d67c0e3b50
@ -73,6 +73,7 @@ import org.sleuthkit.autopsy.coreutils.History;
|
|||||||
import org.sleuthkit.autopsy.coreutils.LoggedTask;
|
import org.sleuthkit.autopsy.coreutils.LoggedTask;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.autopsy.coreutils.ThreadConfined;
|
import org.sleuthkit.autopsy.coreutils.ThreadConfined;
|
||||||
|
import org.sleuthkit.autopsy.coreutils.ThreadUtils;
|
||||||
import org.sleuthkit.autopsy.events.AutopsyEvent;
|
import org.sleuthkit.autopsy.events.AutopsyEvent;
|
||||||
import org.sleuthkit.autopsy.ingest.IngestManager;
|
import org.sleuthkit.autopsy.ingest.IngestManager;
|
||||||
import org.sleuthkit.autopsy.ingest.ModuleDataEvent;
|
import org.sleuthkit.autopsy.ingest.ModuleDataEvent;
|
||||||
@ -375,17 +376,26 @@ public class TimeLineController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "Shut down" Timeline. Remove all the case and ingest listers. Close the
|
* Shuts down the task executor in charge of handling case events.
|
||||||
* timeline window.
|
*/
|
||||||
|
void shutDownTimeLineListeners() {
|
||||||
|
ThreadUtils.shutDownTaskExecutor(executor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* "Shut down" Timeline. Close the timeline window.
|
||||||
*/
|
*/
|
||||||
@ThreadConfined(type = ThreadConfined.ThreadType.AWT)
|
@ThreadConfined(type = ThreadConfined.ThreadType.AWT)
|
||||||
public void shutDownTimeLine() {
|
public void shutDownTimeLineGui() {
|
||||||
if (topComponent != null) {
|
if (topComponent != null) {
|
||||||
topComponent.close();
|
topComponent.close();
|
||||||
topComponent = null;
|
topComponent = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the case and ingest listeners, prompt for rebuilding the database if
|
* Add the case and ingest listeners, prompt for rebuilding the database if
|
||||||
|
@ -95,7 +95,8 @@ public class TimeLineModule {
|
|||||||
*/
|
*/
|
||||||
synchronized (controllerLock) {
|
synchronized (controllerLock) {
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
SwingUtilities.invokeLater(controller::shutDownTimeLine);
|
controller.shutDownTimeLineListeners();
|
||||||
|
SwingUtilities.invokeLater(controller::shutDownTimeLineGui);
|
||||||
}
|
}
|
||||||
controller = null;
|
controller = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user