speed up shutdown

This commit is contained in:
Will McGugan
2023-02-18 10:42:42 +00:00
parent 8e9d99cb22
commit 4d1a3a5dc9

View File

@@ -1778,6 +1778,7 @@ class App(Generic[ReturnType], DOMNode):
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: