tidying IO.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 20 Jan 2006 15:22:15 +0000 (15:22 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 20 Jan 2006 15:22:15 +0000 (15:22 +0000)
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

index 9b242c0..112a4b2 100644 (file)
@@ -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);