summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/web/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/web/service.py b/src/leap/bitmask/core/web/service.py
index 2b8a7343..0481f52c 100644
--- a/src/leap/bitmask/core/web/service.py
+++ b/src/leap/bitmask/core/web/service.py
@@ -138,7 +138,8 @@ class HTTPDispatcherService(service.Service):
def stopService(self):
self.site.stopFactory()
- self.listener.stopListening()
+ if hasattr(self, 'listener'):
+ self.listener.stopListening()
self.running = False
def do_status(self):