summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad/client/crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/leap/soledad/client/crypto.py')
-rw-r--r--client/src/leap/soledad/client/crypto.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/crypto.py b/client/src/leap/soledad/client/crypto.py
index 5e3760b3..d68f3089 100644
--- a/client/src/leap/soledad/client/crypto.py
+++ b/client/src/leap/soledad/client/crypto.py
@@ -616,6 +616,9 @@ class SyncEncrypterPool(SyncEncryptDecryptPool):
:param content: The encrypted document.
:type content: str
"""
+ # FIXME --- callback should complete immediately since otherwise the
+ # thread which handles the results will get blocked
+ # Right now we're blocking the dispatcher with the writes to sqlite.
sql_del = "DELETE FROM '%s' WHERE doc_id=?" % (self.TABLE_NAME,)
sql_ins = "INSERT INTO '%s' VALUES (?, ?, ?)" % (self.TABLE_NAME,)