diff --git a/service/esi.py b/service/esi.py index e7689e0cd..8162c6844 100644 --- a/service/esi.py +++ b/service/esi.py @@ -118,8 +118,9 @@ class Esi(EsiAccess): def stopServer(self): pyfalog.debug("Stopping Server") - self.httpd.stop() - self.httpd = None + if self.httpd: + self.httpd.stop() + self.httpd = None def startServer(self, port): # todo: break this out into two functions: starting the server, and getting the URI pyfalog.debug("Starting server")