Add check to pp to not re-save deleted recordings

This commit is contained in:
0xb00bface 2020-12-31 12:51:49 +01:00
parent f86ba637b4
commit 93a662ce22
1 changed files with 4 additions and 2 deletions

View File

@ -212,8 +212,10 @@ public class NextGenLocalRecorder implements Recorder {
break; break;
} }
} }
setRecordingStatus(recording, State.FINISHED); if (recording.getStatus() != State.DELETED) {
recordingManager.saveRecording(recording); setRecordingStatus(recording, State.FINISHED);
recordingManager.saveRecording(recording);
}
LOG.info("Post-processing finished for {}", recording.getModel().getName()); LOG.info("Post-processing finished for {}", recording.getModel().getName());
} catch (Exception e) { } catch (Exception e) {
if (e instanceof InterruptedException) { // NOSONAR if (e instanceof InterruptedException) { // NOSONAR