summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-28 00:07:01 -0300
committerdrebs <drebs@leap.se>2017-04-19 11:37:06 +0200
commit9173c7af657392a5905ed44efaeacd8bf78ff722 (patch)
tree37f9768c94eb6b9a19cced865860e948dd3af6a9
parent7bfa9951b211806157101804d086eaabe47c6498 (diff)
[bug] local.put closes fd, return from local.get instead
-rw-r--r--client/src/leap/soledad/client/_blobs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/_blobs.py b/client/src/leap/soledad/client/_blobs.py
index 24e2fa65..a44b0ca2 100644
--- a/client/src/leap/soledad/client/_blobs.py
+++ b/client/src/leap/soledad/client/_blobs.py
@@ -220,8 +220,7 @@ class BlobManager(object):
logger.info("Got decrypted blob of type: %s" % type(blob))
blob.seek(0)
yield self.local.put(blob_id, blob, size=size)
- blob.seek(0)
- defer.returnValue(blob)
+ defer.returnValue((yield self.local.get(blob_id)))
else:
# XXX we shouldn't get here, but we will...
# lots of ugly error handling possible: