summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/pix.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-12 19:13:09 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-12 19:13:36 +0200
commit5dd3177c5a7f453a5840012bf260b73ec6de2e77 (patch)
tree4cea80db0c9643ee7a4fe4efd699411b32946dcb /src/leap/bitmask/pix.py
parent79541c6958dc5a526dee461db8e5a073e1ba7273 (diff)
[bug] delay initialization of pixelated
- Related: #8798
Diffstat (limited to 'src/leap/bitmask/pix.py')
-rw-r--r--src/leap/bitmask/pix.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/leap/bitmask/pix.py b/src/leap/bitmask/pix.py
index 09394d7e..69067101 100644
--- a/src/leap/bitmask/pix.py
+++ b/src/leap/bitmask/pix.py
@@ -41,8 +41,6 @@ try:
import pixelated_www
HAS_PIXELATED = True
except ImportError as exc:
- print "CANNOT LOAD PIXELATED!..............."
- print exc
HAS_PIXELATED = False
@@ -203,7 +201,13 @@ def _start_in_single_user_mode(leap_session, config, resource,
services_factory):
start_site(config, resource)
reactor.callLater(
- 0, start_user_agent_in_single_user_mode,
+ # workaround for #8798
+ # we need to make pixelated initialization a bit behind
+ # the own leap initialization, because otherwise the inbox is created
+ # without the needed callbacks for IMAP compatibility.
+ # This should be better addressed at pixelated code, by using the mail
+ # api to create the collection.
+ 2, start_user_agent_in_single_user_mode,
resource, services_factory,
leap_session.config.leap_home, leap_session)