diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-20 12:17:46 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:25 +0200 |
commit | 9b773d5e8728893c0d01a57770deae1e4c58bc20 (patch) | |
tree | cd96bd9f4c9727e5723a6e05670284166bfea5cf /service | |
parent | ca4974d6f5df712bff1d7135242c8ddc3f5778da (diff) |
Wait for account to become ready before access.
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/bitmask_libraries/session.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/service/pixelated/bitmask_libraries/session.py b/service/pixelated/bitmask_libraries/session.py index 50f5e7c7..b4015e09 100644 --- a/service/pixelated/bitmask_libraries/session.py +++ b/service/pixelated/bitmask_libraries/session.py @@ -159,9 +159,8 @@ class LeapSessionFactory(object): @defer.inlineCallbacks def _create_incoming_mail_fetcher(self, nicknym, soledad_session, account, user_mail): - # FIXME Replace inbox collection by our own mailbox indexer - inbox = yield account.getMailbox('INBOX') + inbox = yield account.callWhenReady(lambda _: account.getMailbox('INBOX')) defer.returnValue(IncomingMail(nicknym.keymanager, soledad_session.soledad, - inbox, + inbox.collection, user_mail)) |