فهرست منبع

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
 		}