http: Start the CherryPy bus, and not just the server

This commit is contained in:
Stein Magnus Jodal 2012-11-09 10:07:38 +01:00
parent 5d8929986d
commit 4d5122094f

View File

@ -37,12 +37,12 @@ class HttpFrontend(pykka.ThreadingActor):
def on_start(self):
logger.debug(u'Starting HTTP server')
cherrypy.server.start()
cherrypy.engine.start()
logger.info(u'HTTP server running at %s',
cherrypy.server.base())
def on_stop(self):
cherrypy.server.stop()
cherrypy.engine.stop()
class Root(object):