summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-26 13:44:41 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-27 19:33:29 +0200
commit549d60f1b539252d3bc041f5b12263317b4b0943 (patch)
tree3b5b4ceeea04b78350bfcb5e191c5c34938e8893 /src/leap/bitmask
parent9f95446a55533c8cdceec7c4430be5cad752ecb1 (diff)
[bug] do not assume we got a listener
Diffstat (limited to 'src/leap/bitmask')
-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 2b8a734..0481f52 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):