From 9f5885fc7fc725e8541bf2b0cd60527d3b96b87e Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Wed, 16 Sep 2015 17:34:20 -0300 Subject: Moved account to after sync function #458 Imap account creation was firing post sync hooks and that was trying to use the mailboxes that were not synced yet. Just moved that for the after sync together with the incoming mail fetcher --- service/pixelated/config/leap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/config') diff --git a/service/pixelated/config/leap.py b/service/pixelated/config/leap.py index f96710d4..c1280756 100644 --- a/service/pixelated/config/leap.py +++ b/service/pixelated/config/leap.py @@ -24,7 +24,7 @@ def initialize_leap(leap_provider_cert, LeapCertificate(provider).setup_ca_bundle() leap_session = LeapSessionFactory(provider).create(username, password) - yield leap_session.initial_sync() + leap_session = yield leap_session.initial_sync() defer.returnValue(leap_session) -- cgit v1.2.3