Skip to content

Commit

Permalink
SUP-22058: reset recording if per session is used (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
noam-arad authored May 19, 2020
1 parent 21e310a commit 22af226
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/recording/RecordingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ class RecordingManager {
this.replaceUnknownRecordedEntry(element)
}
if (isRecordingFinish(element)) {
this.stopRecording(entryId);
const resetRecordedEntryId = (element.entryObject.recordStatus != kalturaTypes.KalturaRecordStatus.APPENDED);
this.stopRecording(entryId, resetRecordedEntryId);
}
});
logger.info("Available recording entry: %j", _.keys(this.recordingList));
Expand Down Expand Up @@ -541,4 +542,4 @@ if (!configRecording.enable){
return
}
let recordingManager = new RecordingManager()
module.exports = recordingManager
module.exports = recordingManager

0 comments on commit 22af226

Please sign in to comment.