Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2013-06-26 23:51:57 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2013-06-26 23:51:57 +0400
commitde862b859c36da0343748a780f6717e7cca053f4 (patch)
tree71b07bdd2be68cce0d2e07fc9f44e2be2f9b8d7b /Duplicati
parentaabd2b4698350aacf9a2438612d183d1547fe660 (diff)
Fixed re-read issue of index volumes
Diffstat (limited to 'Duplicati')
-rw-r--r--Duplicati/Library/Main/Volumes/IndexVolumeReader.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Duplicati/Library/Main/Volumes/IndexVolumeReader.cs b/Duplicati/Library/Main/Volumes/IndexVolumeReader.cs
index c083cf1af..012e63e08 100644
--- a/Duplicati/Library/Main/Volumes/IndexVolumeReader.cs
+++ b/Duplicati/Library/Main/Volumes/IndexVolumeReader.cs
@@ -221,10 +221,11 @@ namespace Duplicati.Library.Main.Volumes
{
get
{
- if (m_blocks != null)
- throw new NotSupportedException("Cannot read Blocks twice");
-
- return m_blocks = new BlockEnumerable(m_compression, m_filename);
+ var n = new BlockEnumerable(m_compression, m_filename);
+ if (m_blocks == null)
+ m_blocks = n;
+
+ return n;
}
}
}