Issue #1329 fixed bug in FileLocker

Change-Id: Ide1f4cb2d9f5d6f6ebfb2eed8bac583f0b0e153e

Former-commit-id: d779a82c5e [formerly d779a82c5e [formerly 695f92db8aa698393bebfb4c2fed0bcf4d9d4efa]]
Former-commit-id: 91a8e56302
Former-commit-id: 66f472ed37
This commit is contained in:
Max Schenkelberg 2013-01-07 16:04:14 -06:00
parent 1f5f1c5950
commit 8745f7acf1

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) {