mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
Remove worker thread from remote event publishing to free database connections
This commit is contained in:
parent
04cc65a532
commit
226d73cc6d
@ -169,9 +169,7 @@ final class RemoteEventPublisher {
|
|||||||
if (object instanceof AutopsyEvent) {
|
if (object instanceof AutopsyEvent) {
|
||||||
AutopsyEvent event = (AutopsyEvent) object;
|
AutopsyEvent event = (AutopsyEvent) object;
|
||||||
event.setSourceType(AutopsyEvent.SourceType.REMOTE);
|
event.setSourceType(AutopsyEvent.SourceType.REMOTE);
|
||||||
new Thread(() -> {
|
|
||||||
localPublisher.publish(event);
|
localPublisher.publish(event);
|
||||||
}).start();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user