tidier file locks - lock file is removed on JVM exit.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 17 Sep 2006 14:42:13 +0000 (14:42 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 17 Sep 2006 14:42:13 +0000 (14:42 +0000)
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

index 53688ac..a1c0406 100644 (file)
@@ -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;
     }