Fix exceptions during shutdown

This commit is contained in:
Kovid Goyal
2016-11-29 23:31:56 +05:30
parent 6e003b0901
commit 7cc39404c8
3 changed files with 45 additions and 21 deletions

View File

@@ -61,6 +61,9 @@ class Window:
def destroy(self):
self.child.hangup()
self.child.get_child_status() # Ensure child does not become zombie
# At this point this window can still render to screen using its
# existing buffers in char_grid. The rest of the cleanup must be
# performed in the GUI thread.
def read_ready(self):
if self.read_bytes(self.screen, self.child_fd) is False: