Skip to content

Commit

Permalink
Fix call to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou authored and Steven Silvester committed Sep 9, 2021
1 parent fe71878 commit 836b5ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ def jinja_template_vars(self):
"""User-supplied values to supply to jinja templates."""
return self.settings.get("jinja_template_vars", {})

@property
def serverapp(self):
return self.settings["serverapp"]

# ---------------------------------------------------------------
# URLs
# ---------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion jupyter_server/services/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ShutdownHandler(JupyterHandler):
async def post(self):
self.log.info("Shutting down on /api/shutdown request.")

await self._cleanup()
await self.serverapp._cleanup()

ioloop.IOLoop.current().stop()

Expand Down

0 comments on commit 836b5ab

Please sign in to comment.