mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
always use transient IOLoop for run_sync
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user