From 9b3a3fb2437459e53b33692a1e5e574e8488c250 Mon Sep 17 00:00:00 2001 From: jprocter Date: Sun, 17 Sep 2006 14:42:13 +0000 Subject: [PATCH] tidier file locks - lock file is removed on JVM exit. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@245 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/client/simpleclient/FileLock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/vamsas/client/simpleclient/FileLock.java b/src/org/vamsas/client/simpleclient/FileLock.java index 53688ac..a1c0406 100644 --- a/src/org/vamsas/client/simpleclient/FileLock.java +++ b/src/org/vamsas/client/simpleclient/FileLock.java @@ -47,6 +47,7 @@ public class FileLock extends Lock { if (_lock!=null) { if ( advisory!=null) advisory.release(true); + advisory.target.deleteOnExit(); advisory=null; _lock=null; } -- 1.7.10.2