소스 검색

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
 		}