From 277d50147b238cbf89038d96187304285a3df516 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 20 Jan 2006 15:22:15 +0000 Subject: [PATCH] tidying IO. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@155 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/test/simpleclient/VamsasArchive.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 1.7.10.2