Преглед на файлове

prevent race conditions

Armin Schrenk преди 4 години
родител
ревизия
17c580267f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      main/commons/src/main/java/org/cryptomator/common/mountpoint/IrregularUnmountCleaner.java

+ 1 - 1
main/commons/src/main/java/org/cryptomator/common/mountpoint/IrregularUnmountCleaner.java

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