diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/soledad/client/_crypto.py | 2 | ||||
-rw-r--r-- | src/leap/soledad/client/_db/blobs.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/client/_crypto.py b/src/leap/soledad/client/_crypto.py index 8b0b8f81..873b82a8 100644 --- a/src/leap/soledad/client/_crypto.py +++ b/src/leap/soledad/client/_crypto.py @@ -435,7 +435,7 @@ class BlobDecryptor(object): return self._producer.startProducing(self._aes) def endStream(self): - self._end_stream() + return self._end_stream() def write(self, data): self._aes.write(data) diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py index 3bbbb1e5..87209570 100644 --- a/src/leap/soledad/client/_db/blobs.py +++ b/src/leap/soledad/client/_db/blobs.py @@ -149,7 +149,7 @@ class DecrypterBuffer(object): def close(self): if self.decrypter: real_size = self.decrypter.decrypted_content_size - return self.decrypter._end_stream(), real_size + return self.decrypter.endStream(), real_size else: return self.raw_data, self.raw_data.tell() |