There's some times when self.httpd doesn't exist for some reason. Too lazy to find out the cause

This commit is contained in:
Ryan Holmes
2019-03-02 11:43:21 -05:00
parent ec3822a6da
commit f919e23360

View File

@@ -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")