From 2426fd4cc4177c5849336f2c54711114a1d957e4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 15 Mar 2007 14:43:39 +0000 Subject: [PATCH] ensured backups are only made when backup==true 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uk/ac/vamsas/client/simpleclient/ClientsFile.java b/src/uk/ac/vamsas/client/simpleclient/ClientsFile.java index 17af085..e700ee4 100644 --- a/src/uk/ac/vamsas/client/simpleclient/ClientsFile.java +++ b/src/uk/ac/vamsas/client/simpleclient/ClientsFile.java @@ -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 { -- 1.7.10.2