forked from j62/ctbrec
1
0
Fork 0

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;
}
}
setRecordingStatus(recording, State.FINISHED);
recordingManager.saveRecording(recording);
if (recording.getStatus() != State.DELETED) {
setRecordingStatus(recording, State.FINISHED);
recordingManager.saveRecording(recording);
}
LOG.info("Post-processing finished for {}", recording.getModel().getName());
} catch (Exception e) {
if (e instanceof InterruptedException) { // NOSONAR