From: jprocter Date: Thu, 15 Mar 2007 14:43:39 +0000 (+0000) Subject: ensured backups are only made when backup==true X-Git-Tag: Release_0.2~162 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2426fd4cc4177c5849336f2c54711114a1d957e4;p=vamsas.git 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 --- 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 {