always use transient IOLoop for run_sync

This commit is contained in:
MinRK
2014-09-19 17:21:55 -07:00
parent 24eebd94e4
commit 82c06ebe98

View File

@@ -493,15 +493,16 @@ class JupyterHubApp(Application):
if self.generate_config:
self.write_config_file()
return
loop = IOLoop.current()
# start the proxy
try:
loop.run_sync(self.start_proxy)
IOLoop().run_sync(self.start_proxy)
except Exception as e:
self.log.critical("Failed to start proxy", exc_info=True)
return
loop = IOLoop.current()
pc = PeriodicCallback(self.check_proxy, self.proxy_check_interval)
pc.start()