summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/core/dispatcher.py1
-rw-r--r--src/leap/bitmask/core/service.py5
2 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index ba000d4..e0cc129 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -247,7 +247,6 @@ class MailCmd(SubCommand):
@register_method('dict')
def do_ENABLE(self, service, *parts, **kw):
- # FIXME -- service doesn't have this method
d = service.do_enable_service(self.label)
return d
diff --git a/src/leap/bitmask/core/service.py b/src/leap/bitmask/core/service.py
index 0a3ac6b..9ff599e 100644
--- a/src/leap/bitmask/core/service.py
+++ b/src/leap/bitmask/core/service.py
@@ -17,7 +17,6 @@
"""
Bitmask-core Service.
"""
-import json
import os
import uuid
try:
@@ -145,9 +144,9 @@ class BitmaskBackend(configurable.ConfigurableService):
sessions.setServiceParent(self)
def _start_child_service(self, name):
- log.debug('Starting backend child service: %s' % name)
service = self.getServiceNamed(name)
- if service:
+ if service and not service.running:
+ log.debug('Starting backend child service: %s' % name)
service.startService()
def _stop_child_service(self, name):