From: jprocter Date: Sun, 17 Sep 2006 14:42:13 +0000 (+0000) Subject: tidier file locks - lock file is removed on JVM exit. X-Git-Tag: Release_0.2~275 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9b3a3fb2437459e53b33692a1e5e574e8488c250;p=vamsas.git 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 --- 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; }