Revert "Move recorder lock inside of startRecordingProcess"

This reverts commit 78f7f7a841.
This commit is contained in:
0xb00bface 2021-10-01 19:43:42 +02:00
parent 24cad6e124
commit 1f50b74728
1 changed files with 1 additions and 1 deletions

View File

@ -296,11 +296,11 @@ public class NextGenLocalRecorder implements Recorder {
private CompletableFuture<Void> startRecordingProcess(Model model) {
return CompletableFuture.runAsync(() -> {
recorderLock.lock();
try {
preconditions.check(model);
LOG.info("Starting recording for model {}", model.getName());
Download download = createDownload(model);
recorderLock.lock();
Recording rec = createRecording(download);
setRecordingStatus(rec, State.RECORDING);
rec.getModel().setLastRecorded(rec.getStartDate());