Skip to content

Commit

Permalink
Merge pull request #446 from afshin/terminal-shutdown
Browse files Browse the repository at this point in the history
Fix for the terminal shutdown issue
  • Loading branch information
blink1073 committed Mar 18, 2021
2 parents c75d791 + 5146135 commit d690965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyter_server/terminal/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def origin_check(self):
def get(self, *args, **kwargs):
if not self.get_current_user():
raise web.HTTPError(403)
if not args[0] in self.term_manager.terminals:
raise web.HTTPError(404)
return super(TermSocket, self).get(*args, **kwargs)

def on_message(self, message):
Expand Down

0 comments on commit d690965

Please sign in to comment.