fix IOLoop / subprocess cleanup

- use IOLoop.current
- don't stop loop in cleanup
This commit is contained in:
MinRK
2014-09-13 15:43:42 -07:00
parent 573f34a5b5
commit e762a87241

View File

@@ -348,7 +348,6 @@ class JupyterHubApp(Application):
# finally stop the loop once we are all cleaned up
self.log.info("...done")
IOLoop.instance().stop()
def start(self):
"""Start the whole thing"""
@@ -358,7 +357,7 @@ class JupyterHubApp(Application):
http_server = tornado.httpserver.HTTPServer(self.tornado_application)
http_server.listen(self.hub_port)
loop = IOLoop.instance()
loop = IOLoop.current()
try:
loop.start()
except KeyboardInterrupt: