From b7171e40d7910d569331750b72536d46ccd9cf2c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 19 Nov 2016 17:49:12 -0300 Subject: [bug] fix upload progress We need to emit zmq status during doc prepare, which is called during upload. --- client/src/leap/soledad/client/http_target/send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3