forgot to release a trial lock that failed.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 24 Oct 2005 10:10:02 +0000 (10:10 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 24 Oct 2005 10:10:02 +0000 (10:10 +0000)
Should consider automatically closing/releasing if lock fails.

git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@73 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/simpleclient/ClientsFile.java

index 2a103ed..c624100 100644 (file)
@@ -50,6 +50,8 @@ public class ClientsFile {
         // TODO: see if we need to loop-wait for locks or they just block until
         // lock is made...
         do {
+          if (listlock!=null)
+            listlock.release();
           listlock = new Lock(filelist); // TODO: wait around if we can't get the lock.
         } while (!listlock.isLocked());
         // listlock = new Lock(filelist);