fix: DCHECK when calling app.exit() (#33057)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-02-28 11:37:00 -08:00
committed by GitHub
parent 931db4a747
commit 1d57a87c64

View File

@@ -109,7 +109,7 @@ void WindowList::DestroyAllWindows() {
ConvertToWeakPtrVector(GetInstance()->windows_);
for (const auto& window : weak_windows) {
if (window)
if (window && !window->IsClosed())
window->CloseImmediately();
}
}