diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-07-20 11:33:49 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:25 +0200 |
commit | ca4974d6f5df712bff1d7135242c8ddc3f5778da (patch) | |
tree | 9019ab6d608da77326c59d62e2807b513168659d /service/pixelated | |
parent | a759db8bc3c3f9b826f3332da11f090e5c758ee5 (diff) |
fix initialize_leap
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/application.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py index eafeede7..b44a9893 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -75,16 +75,11 @@ def initialize(): loading_app = reactor.listenTCP(args.port, Site(LoadingResource()), interface=args.host) - deferred = deferToThread( - lambda: initialize_leap( - args.leap_provider_cert, - args.leap_provider_cert_fingerprint, - args.credentials_file, - args.organization_mode, - args.leap_home)) - - deferred.addCallback( - lambda leap_session: leap_session.initial_sync()) + deferred = initialize_leap(args.leap_provider_cert, + args.leap_provider_cert_fingerprint, + args.credentials_file, + args.organization_mode, + args.leap_home) deferred.addCallback( lambda leap_session: start_user_agent( |