1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 00:07:38 +00:00

Merge pull request #946 from enkore/issue/945

Fix #945
This commit is contained in:
enkore 2016-04-19 09:22:10 +02:00
commit 035a884f1e

View file

@ -95,7 +95,7 @@ def flush(self, flush=False):
for chunk in chunks[:end]:
self.chunks.append(self.write_chunk(chunk))
if end == -1:
self.buffer.write(chunks[-1])
self.buffer.write(chunks[-1].data)
def is_full(self):
return self.buffer.tell() > self.BUFFER_SIZE