mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: DCHECK when calling app.exit() (#33059)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -109,7 +109,7 @@ void WindowList::DestroyAllWindows() {
|
||||
ConvertToWeakPtrVector(GetInstance()->windows_);
|
||||
|
||||
for (const auto& window : weak_windows) {
|
||||
if (window)
|
||||
if (window && !window->IsClosed())
|
||||
window->CloseImmediately();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user