Skip to content

Commit

Permalink
speed up shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 18, 2023
1 parent 8e9d99c commit 4d1a3a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1778,6 +1778,7 @@ async def _close_all(self) -> None:
await child._close_messages()

async def _shutdown(self) -> None:
self._begin_update() # Prevents any layout / repaint while shutting down
driver = self._driver
self._running = False
if driver is not None:
Expand Down

0 comments on commit 4d1a3a5

Please sign in to comment.