X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2Finternal%2FAcornDatabase.java;h=db83f1395d005babeb09dbd500f5034d2326f503;hb=4b277ed9a9aeef8bc43794989bd636b3768a4fa2;hp=12f0552e434e96638d6bdd7bcd22d440d3d9a674;hpb=a02a5904a09f9bc2cf6477f0dc0552de2abe68ed;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/AcornDatabase.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/AcornDatabase.java index 12f0552e4..db83f1395 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/AcornDatabase.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/AcornDatabase.java @@ -119,12 +119,8 @@ public class AcornDatabase implements Database { @Override public synchronized void start() throws ProCoreException { try { - try { - lockFileChannel = lockFile.getFileSystem().provider().newFileChannel(lockFile, - EnumSet.of(StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE)); - } catch (FileAlreadyExistsException e) { - throw new ProCoreException("The database in folder " + folder.toAbsolutePath() + " is already in use!", e); - } + lockFileChannel = lockFile.getFileSystem().provider().newFileChannel(lockFile, + EnumSet.of(StandardOpenOption.CREATE, StandardOpenOption.WRITE)); lock = lockFileChannel.tryLock(); if (lock == null) {