From 549d60f1b539252d3bc041f5b12263317b4b0943 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 26 Apr 2017 13:44:41 +0200 Subject: [bug] do not assume we got a listener --- src/leap/bitmask/core/web/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap') 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): -- cgit v1.2.3