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:
Min RK
2018-02-22 14:48:36 +01:00
parent 6f8ae98ed0
commit 17fffda74e

View File

@@ -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: