ensured backups are only made when backup==true
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 15 Mar 2007 14:43:39 +0000 (14:43 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 15 Mar 2007 14:43:39 +0000 (14:43 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@358 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/ClientsFile.java

index 17af085..e700ee4 100644 (file)
@@ -236,7 +236,10 @@ public class ClientsFile extends ListFile {
   protected boolean putClientList(ClientHandle[] clients) {
     if (lockFile()) {
       File templist=null;
-      if (!backup || (templist = backupSessionFile()) != null) {
+      if (backup) {
+        templist = backupSessionFile();
+      }
+      if (!backup || (templist != null)) {
         int retries=3;
         while (retries-->0) {
           try {