From 0eedae376025bb2afab957bc2cfd1baebef79060 Mon Sep 17 00:00:00 2001 From: "kenneth.skovhede@gmail.com" Date: Wed, 27 Oct 2010 21:09:11 +0000 Subject: [PATCH] Fixed an issue where a cleanup would go into an infinite loop. git-svn-id: https://duplicati.googlecode.com/svn/trunk@564 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/Library/Main/BackendWrapper.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Duplicati/Library/Main/BackendWrapper.cs b/Duplicati/Library/Main/BackendWrapper.cs index f4370c103..f5eb144fb 100644 --- a/Duplicati/Library/Main/BackendWrapper.cs +++ b/Duplicati/Library/Main/BackendWrapper.cs @@ -673,11 +673,16 @@ namespace Duplicati.Library.Main { try { + string file = FindCacheEntry(remote as SignatureEntry); try - { - while(file != null) - System.IO.File.Delete(file); + { + + while (file != null) + { + System.IO.File.Delete(file); + file = FindCacheEntry(remote as SignatureEntry); + } } catch (Exception ex) {