diff options
author | kaeff <hi@kaeff.net> | 2015-08-20 09:26:42 +0200 |
---|---|---|
committer | kaeff <hi@kaeff.net> | 2015-08-20 09:26:42 +0200 |
commit | 6093146c62dfaa300b0c5c7c8fff91cfe25b194e (patch) | |
tree | 97df977ef26dfebf3d40f42f835b42de9cbeac97 /service | |
parent | d8ccf73da1c1dffc5c45fbea6f54c54036d65901 (diff) |
Yield call to soledad when doing `maintenance reset`
- Issue: 421
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/maintenance.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/maintenance.py b/service/pixelated/maintenance.py index 63a0fa0e..ae320049 100644 --- a/service/pixelated/maintenance.py +++ b/service/pixelated/maintenance.py @@ -98,15 +98,16 @@ def add_command_callback(args, prepareDeferred, finalizeDeferred): return finalizeDeferred +@defer.inlineCallbacks def delete_all_mails(args): leap_session, soledad = args - generation, docs = soledad.get_all_docs() + generation, docs = yield soledad.get_all_docs() for doc in docs: if doc.content.get('type', None) in ['head', 'cnt', 'flags']: soledad.delete_doc(doc) - return args + defer.returnValue(args) def is_keep_file(mail): |