Skip to content

Commit

Permalink
fix: DCHECK when calling app.exit() (#33059)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Feb 28, 2022
1 parent 68c5413 commit 6dc7384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/window_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void WindowList::DestroyAllWindows() {
ConvertToWeakPtrVector(GetInstance()->windows_);

for (const auto& window : weak_windows) {
if (window)
if (window && !window->IsClosed())
window->CloseImmediately();
}
}
Expand Down

0 comments on commit 6dc7384

Please sign in to comment.