From c02763beea0fa0202c76ff4f15bcc3ca3ba21f0c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 15 Dec 2022 02:08:00 +0100 Subject: [PATCH] Small fixes in backup engine --- .../fr/pandacube/lib/paper/modules/backup/BackupCleaner.java | 2 +- .../fr/pandacube/lib/paper/modules/backup/CompressProcess.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java index 7a76f29..b02b3f7 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/BackupCleaner.java @@ -102,7 +102,7 @@ public abstract class BackupCleaner implements UnaryOperator datedFile : datedFiles.entrySet()) { if (keptFiles.contains(datedFile.getKey())) { diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressProcess.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressProcess.java index 9b5861f..741a082 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressProcess.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressProcess.java @@ -133,8 +133,9 @@ public abstract class CompressProcess implements Comparable, Ru PerformanceAnalysisManager.getInstance().removeBossBar(bossBar); } }); - } finally { + } catch (Throwable t) { backupManager.compressRunning.set(null); + throw t; } }