summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2016-11-19 17:49:12 -0300
committerVictor Shyba <victor1984@riseup.net>2016-11-19 17:49:12 -0300
commitb7171e40d7910d569331750b72536d46ccd9cf2c (patch)
treeb12650978a840fd418053398a25b294f2b66802f
parenteb5982c31f44468ecb9bf3dbcf36dde714e2e49a (diff)
[bug] fix upload progress
We need to emit zmq status during doc prepare, which is called during upload.
-rw-r--r--client/src/leap/soledad/client/http_target/send.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/http_target/send.py b/client/src/leap/soledad/client/http_target/send.py
index c15488a0..ffb5f4ba 100644
--- a/client/src/leap/soledad/client/http_target/send.py
+++ b/client/src/leap/soledad/client/http_target/send.py
@@ -73,7 +73,6 @@ class HTTPDocSender(object):
entry, body, idx, total))
result = yield self._send_request(body, calls)
- _emit_send_status(self.uuid, body.consumed, total)
defer.returnValue(result)
def _send_request(self, body, calls):
@@ -92,6 +91,7 @@ class HTTPDocSender(object):
id=doc.doc_id, rev=doc.rev, content=content, gen=gen,
trans_id=trans_id, number_of_docs=total,
doc_idx=idx)
+ _emit_send_status(self.uuid, body.consumed, total)
@defer.inlineCallbacks
def _encrypt_doc(self, get_doc_call):