Skip to content

Commit

Permalink
Set websocket.terminal to None when the child exits
Browse files Browse the repository at this point in the history
This fixes an error I was seeing when exiting a terminal which is open
in multiple tabs at the same time. The code path to resize the terminal
to the smallest client window size was taken, which tries to communicate
with the (now closed) terminal.
  • Loading branch information
takluyver committed Mar 29, 2018
1 parent d6f5f15 commit 127b3b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terminado/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ def on_pty_died(self):
"""
self.send_json_message(['disconnect', 1])
self.close()
self.terminal = None

0 comments on commit 127b3b3

Please sign in to comment.