Fix save race condition

This commit is contained in:
crschnick 2024-01-22 12:33:26 +00:00
parent 2310515a4c
commit 53926a2830

View file

@ -303,11 +303,12 @@ public class StandardStorage extends DataStorage {
}
public void save(boolean dispose) {
if (!loaded || disposed) {
if (!busyIo.tryLock()) {
return;
}
if (!busyIo.tryLock()) {
if (!loaded || disposed) {
busyIo.unlock();
return;
}