From: jprocter Date: Fri, 20 Jan 2006 15:22:15 +0000 (+0000) Subject: tidying IO. X-Git-Tag: Release_0.2~365 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=277d50147b238cbf89038d96187304285a3df516;p=vamsas.git tidying IO. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@155 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/test/simpleclient/VamsasArchive.java b/src/org/vamsas/test/simpleclient/VamsasArchive.java index 9b242c0..112a4b2 100644 --- a/src/org/vamsas/test/simpleclient/VamsasArchive.java +++ b/src/org/vamsas/test/simpleclient/VamsasArchive.java @@ -173,6 +173,7 @@ public class VamsasArchive { log.warn("No appdatas were transferred. This is wrong."); va.putVamsasDocument(doc); va.closeArchive(); + sfile.unLock(); log.info("Testing update: "); { Lock lock=sfile.getLock(); @@ -182,8 +183,6 @@ public class VamsasArchive { VamsasArchiveReader vreader = new VamsasArchiveReader(newf); SimpleDocument sdoc = new SimpleDocument("testing vamsas update"); ArchiveReports.reportDocument(sdoc.getVamsasDocument(vreader), vreader, true, System.out); - lock.release(); - lock = null; } } catch (Exception e) { e.printStackTrace(System.err);