From 88059ea1fef3519af2ba4d038b97523e596d062c Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 24 Oct 2005 10:10:02 +0000 Subject: [PATCH] forgot to release a trial lock that failed. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/vamsas/client/simpleclient/ClientsFile.java b/src/org/vamsas/client/simpleclient/ClientsFile.java index 2a103ed..c624100 100644 --- a/src/org/vamsas/client/simpleclient/ClientsFile.java +++ b/src/org/vamsas/client/simpleclient/ClientsFile.java @@ -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); -- 1.7.10.2