Shutdown fixes

This commit is contained in:
crschnick 2024-09-25 10:50:41 +00:00
parent d2f3439961
commit 83a5659ca4
2 changed files with 3 additions and 2 deletions

View file

@ -130,6 +130,9 @@ public abstract class DataStorage {
}
private void dispose() {
getStoreEntries().forEach(entry -> {
entry.finalizeEntry();
});
save(true);
}

View file

@ -581,7 +581,6 @@ public class DataStoreEntry extends StorageElement {
notifyUpdate(false, false);
}
@SneakyThrows
public void initializeEntry() {
if (store instanceof ExpandedLifecycleStore lifecycleStore) {
try {
@ -597,7 +596,6 @@ public class DataStoreEntry extends StorageElement {
}
}
@SneakyThrows
public void finalizeEntry() {
if (store instanceof ExpandedLifecycleStore lifecycleStore) {
try {