From: jprocter Date: Tue, 11 Oct 2005 21:15:55 +0000 (+0000) Subject: ClientsFileTest debugged and verified. X-Git-Tag: Release_0.2~459 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9a2d6a9d2da4e6c7923e13656e50dbbe7517b6a8;p=vamsas.git ClientsFileTest debugged and verified. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@61 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/.externalToolBuilders/ClientsFileTest.launch b/.externalToolBuilders/ClientsFileTest.launch index eb9c44d..ab2a7fe 100644 --- a/.externalToolBuilders/ClientsFileTest.launch +++ b/.externalToolBuilders/ClientsFileTest.launch @@ -1,12 +1,12 @@ - + + - diff --git a/src/org/vamsas/client/simpleclient/ClientsFile.java b/src/org/vamsas/client/simpleclient/ClientsFile.java index 8f938f6..4d34039 100644 --- a/src/org/vamsas/client/simpleclient/ClientsFile.java +++ b/src/org/vamsas/client/simpleclient/ClientsFile.java @@ -172,7 +172,7 @@ public class ClientsFile { for (int k=0,i = 0, j = clients.length; i < j; i++) if (i!=mynum) newlist[k++] = clients[i]; - if (!putClientList(clients)) + if (!putClientList(newlist)) throw new Error("Failed to write new clientList!"); // failed to put the clientList to disk. } } @@ -187,7 +187,7 @@ public class ClientsFile { * Note: Caller is left to release the lock on the ClientList. * @param me * @param disambiguate - - * flag indicating if the URN for me should be disambiguate to + * flag indicating if the URN for me should be disambiguated to * differentiate between sessions. * @return index of clientHandle in new list, or -1-position of existing * clientHandle (if disambiguate is true) diff --git a/src/org/vamsas/test/simpleclient/ClientsFileTest.java b/src/org/vamsas/test/simpleclient/ClientsFileTest.java index 705c1fc..9339600 100644 --- a/src/org/vamsas/test/simpleclient/ClientsFileTest.java +++ b/src/org/vamsas/test/simpleclient/ClientsFileTest.java @@ -30,9 +30,8 @@ public class ClientsFileTest { e.printStackTrace(System.err); return; } - int argc=0; + int argc=1; while (argc