Skip to content

Commit 836b5ab

Browse files
martinRenouSteven Silvester
authored andcommitted
Fix call to cleanup
1 parent fe71878 commit 836b5ab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

jupyter_server/base/handlers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ def jinja_template_vars(self):
212212
"""User-supplied values to supply to jinja templates."""
213213
return self.settings.get("jinja_template_vars", {})
214214

215+
@property
216+
def serverapp(self):
217+
return self.settings["serverapp"]
218+
215219
# ---------------------------------------------------------------
216220
# URLs
217221
# ---------------------------------------------------------------

jupyter_server/services/shutdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ShutdownHandler(JupyterHandler):
1111
async def post(self):
1212
self.log.info("Shutting down on /api/shutdown request.")
1313

14-
await self._cleanup()
14+
await self.serverapp._cleanup()
1515

1616
ioloop.IOLoop.current().stop()
1717

0 commit comments

Comments
 (0)