From: jprocter Date: Mon, 24 Oct 2005 10:10:02 +0000 (+0000) Subject: forgot to release a trial lock that failed. X-Git-Tag: Release_0.2~447 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=88059ea1fef3519af2ba4d038b97523e596d062c;p=vamsas.git 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 --- 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);