mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
fix stop of singleuser with tornado 5
Updates call to match notebook application itself calling IOLoop.instance() is deprecated, and won't work from a background thread with tornado 5.
This commit is contained in:
@@ -304,7 +304,7 @@ class SingleUserNotebookApp(NotebookApp):
|
||||
|
||||
def _confirm_exit(self):
|
||||
# disable the exit confirmation for background notebook processes
|
||||
ioloop.IOLoop.instance().stop()
|
||||
self.io_loop.add_callback_from_signal(self.io_loop.stop)
|
||||
|
||||
def migrate_config(self):
|
||||
if self.disable_user_config:
|
||||
|
Reference in New Issue
Block a user