diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2013-06-26 23:51:57 +0400 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2013-06-26 23:51:57 +0400 |
commit | de862b859c36da0343748a780f6717e7cca053f4 (patch) | |
tree | 71b07bdd2be68cce0d2e07fc9f44e2be2f9b8d7b /Duplicati | |
parent | aabd2b4698350aacf9a2438612d183d1547fe660 (diff) |
Fixed re-read issue of index volumes
Diffstat (limited to 'Duplicati')
-rw-r--r-- | Duplicati/Library/Main/Volumes/IndexVolumeReader.cs | 9 |
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;
}
}
}
|