浏览代码

activate force locking for dokany

Armin Schrenk 4 年之前
父节点
当前提交
4e89de9e47
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      main/commons/src/main/java/org/cryptomator/common/vaults/DokanyVolume.java

+ 5 - 1
main/commons/src/main/java/org/cryptomator/common/vaults/DokanyVolume.java

@@ -71,10 +71,14 @@ public class DokanyVolume extends AbstractVolume {
 
 	@Override
 	public void unmountForced() {
-		mount.close(); //TODO: with next dokany-nio-release, change this to unmountForced()
+		mount.unmountForced();
 		cleanupMountPoint();
 	}
 
+	@Override
+	public boolean supportsForcedUnmount() {
+		return true;
+	}
 	@Override
 	public boolean isSupported() {
 		return DokanyVolume.isSupportedStatic();