Browse Source

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

Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 3 years ago
parent
commit
1d57a87c64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/window_list.cc

+ 1 - 1
shell/browser/window_list.cc

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