Remove worker thread from remote event publishing to free database connections

This commit is contained in:
Richard Cordovano 2015-07-24 13:21:11 -04:00
parent 04cc65a532
commit 226d73cc6d

View File

@ -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) {