forked from j62/ctbrec
1
0
Fork 0

Merge pull request #21 from ctbrechelper/patch-1

Fix merge segments and keep segments with disabled auto merge
This commit is contained in:
0xboobface 2018-08-27 15:41:43 +02:00 committed by GitHub
commit 5e2e9667f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ public class LocalRecorder implements Recorder {
}
}
LOG.debug("Keep segments: {}", Config.getInstance().getSettings().automergeKeepSegments);
if (!Config.getInstance().getSettings().automergeKeepSegments) {
if (Config.getInstance().getSettings().automerge && !Config.getInstance().getSettings().automergeKeepSegments) {
try {
LOG.debug("Deleting directory {}", recDir);
delete(recDir, mergedFile);