http: Exit CherryPy engine properly

This commit is contained in:
Stein Magnus Jodal 2012-11-09 10:51:53 +01:00
parent e41f9e3871
commit 5b8f391bc7

View File

@ -63,7 +63,7 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
def on_stop(self):
logger.debug(u'Stopping HTTP server')
cherrypy.engine.stop()
cherrypy.engine.exit()
logger.info(u'Stopped HTTP server')
def playback_state_changed(self, old_state, new_state):