Skip to content

Commit

Permalink
Merge pull request jupyter-server#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 authored Mar 18, 2021
2 parents eff321a + 6ca5c0e commit 3344755
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 3344755

Please sign in to comment.