Issue #1329 fixed bug in FileLocker

Change-Id: Ide1f4cb2d9f5d6f6ebfb2eed8bac583f0b0e153e

Former-commit-id: ebb303ee06 [formerly d779a82c5e] [formerly ebb303ee06 [formerly d779a82c5e] [formerly 91a8e56302 [formerly 695f92db8aa698393bebfb4c2fed0bcf4d9d4efa]]]
Former-commit-id: 91a8e56302
Former-commit-id: 06004a0e08 [formerly 66f472ed37]
Former-commit-id: 8745f7acf1
This commit is contained in:
Max Schenkelberg 2013-01-07 16:04:14 -06:00
parent 7ef0bc956c
commit 85e82e4b78

View file

@ -340,10 +340,12 @@ public class FileLocker {
gotLock = lockFile.createNewFile() gotLock = lockFile.createNewFile()
|| ((fileTime = lockFile.lastModified()) > 0 && (System || ((fileTime = lockFile.lastModified()) > 0 && (System
.currentTimeMillis() - fileTime) > MAX_WAIT); .currentTimeMillis() - fileTime) > MAX_WAIT);
try { if (!gotLock) {
Thread.sleep(waitInterval); try {
} catch (InterruptedException e) { Thread.sleep(waitInterval);
// Ignore } catch (InterruptedException e) {
// Ignore
}
} }
} }
} catch (IOException e) { } catch (IOException e) {