Fix invalid code

This commit is contained in:
Tim Bentley 2014-04-18 21:35:39 +01:00
parent 25687dfd48
commit e94643b5d1
1 changed files with 2 additions and 16 deletions

View File

@ -71,21 +71,7 @@ class CustomHandler(BaseHTTPRequestHandler, HttpRouter):
self.do_post_processor()
class StoppableHttpServer(HTTPServer):
"""
Http server that reacts to self.stop flag
"""
def serve_forever(self):
"""
Handle one request at a time until stopped.
"""
self.stop = False
while not self.stop:
self.handle_request()
class ThreadingHTTPServer(ThreadingMixIn, StoppableHttpServer):
class ThreadingHTTPServer(ThreadingMixIn, HTTPServer):
pass
@ -176,7 +162,7 @@ class OpenLPServer(RegistryProperties):
log.debug('Stopped the server.')
class HTTPSServer(StoppableHttpServer):
class HTTPSServer(HTTPServer):
def __init__(self, address, handler):
"""
Initialise the secure handlers for the SSL server if required.s