summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 ba000d43..e0cc1297 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 0a3ac6bd..9ff599e3 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):