diff options
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/core/web/service.py | 3 |
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): |