From 8752f7f03a04ca7fa1169885adc9dbfce8bebbd4 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 10 Jun 2015 13:35:05 -0300 Subject: [bug] don't run event server on the standalone We don't need to run the event server on the backend if we are running from the standalone bundle since the launcher takes care of that. - Related: #7126 --- src/leap/bitmask/backend_app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/leap') diff --git a/src/leap/bitmask/backend_app.py b/src/leap/bitmask/backend_app.py index 5fc8d1e2..af71ba12 100644 --- a/src/leap/bitmask/backend_app.py +++ b/src/leap/bitmask/backend_app.py @@ -70,8 +70,13 @@ def run_backend(bypass_checks=False, flags_dict=None, frontend_pid=None): if flags_dict is not None: dict_to_flags(flags_dict) - # start the events server - event_server.ensure_server() + # HACK we should be able to run the ensure_server anyway but right now it + # breaks if we run it twice. + if not flags.STANDALONE: + # start the events server + # This is not needed for the standalone bundle since the launcher takes + # care of it. + event_server.ensure_server() backend = LeapBackend(bypass_checks=bypass_checks, frontend_pid=frontend_pid) -- cgit v1.2.3