prevent race conditions

This commit is contained in:
Armin Schrenk
2020-11-18 14:35:16 +01:00
parent b0ad86f16b
commit 17c580267f

View File

@@ -28,7 +28,7 @@ class IrregularUnmountCleaner {
}
public void clearIrregularUnmountDebrisIfNeeded() {
public synchronized void clearIrregularUnmountDebrisIfNeeded() {
if (alreadyChecked || tmpMountPointDir.isEmpty()) {
return; //nuthin to do
}