From 9b773d5e8728893c0d01a57770deae1e4c58bc20 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Mon, 20 Jul 2015 12:17:46 +0200 Subject: Wait for account to become ready before access. --- service/pixelated/bitmask_libraries/session.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'service') 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)) -- cgit v1.2.3