mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Shutdown fixes
This commit is contained in:
parent
d2f3439961
commit
83a5659ca4
2 changed files with 3 additions and 2 deletions
|
@ -130,6 +130,9 @@ public abstract class DataStorage {
|
|||
}
|
||||
|
||||
private void dispose() {
|
||||
getStoreEntries().forEach(entry -> {
|
||||
entry.finalizeEntry();
|
||||
});
|
||||
save(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue