Skip to content
Snippets Groups Projects
Commit 6d6caa37 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Dump pads into PlayoutLog db async

parent b0750140
No related branches found
No related tags found
No related merge requests found
package de.tobias.playpad.plugin.playout.log; package de.tobias.playpad.plugin.playout.log;
import de.thecodelabs.utils.threading.Worker;
import de.tobias.playpad.pad.Pad; import de.tobias.playpad.pad.Pad;
import de.tobias.playpad.pad.mediapath.MediaPath; import de.tobias.playpad.pad.mediapath.MediaPath;
import de.tobias.playpad.plugin.playout.log.storage.LogSeasonStorageHandler; import de.tobias.playpad.plugin.playout.log.storage.LogSeasonStorageHandler;
...@@ -35,7 +36,7 @@ public class LogSeason { ...@@ -35,7 +36,7 @@ public class LogSeason {
} }
public void createProjectSnapshot(Project project) { public void createProjectSnapshot(Project project) {
project.getPads().forEach(this::addLogItem); Worker.runLater(() -> project.getPads().parallelStream().forEach(this::addLogItem));
} }
public void addLogItem(Pad pad) { public void addLogItem(Pad pad) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment