Small fixes in backup engine
This commit is contained in:
		| @@ -102,7 +102,7 @@ public abstract class BackupCleaner implements UnaryOperator<TreeSet<LocalDateTi | ||||
|  | ||||
|         Chat c = text("[Backup] ") | ||||
|                 .then(text(compressDisplayName).gray()) | ||||
|                 .thenText(testOnly ? " Archive cleanup debug (no files are actually deleted):" : "Deleted archive files:\n"); | ||||
|                 .thenText(testOnly ? " Archive cleanup debug (no files are actually deleted):\n" : " Deleted archive files:\n"); | ||||
|         boolean oneDeleted = false; | ||||
|         for (Entry<LocalDateTime, File> datedFile : datedFiles.entrySet()) { | ||||
|             if (keptFiles.contains(datedFile.getKey())) { | ||||
|   | ||||
| @@ -133,8 +133,9 @@ public abstract class CompressProcess implements Comparable<CompressProcess>, Ru | ||||
| 					PerformanceAnalysisManager.getInstance().removeBossBar(bossBar); | ||||
| 				} | ||||
| 			}); | ||||
| 		} finally { | ||||
| 		} catch (Throwable t) { | ||||
| 			backupManager.compressRunning.set(null); | ||||
| 			throw t; | ||||
| 		} | ||||
|  | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user