Browse Source

destroy browserView webContents asynchronously

deepak1556 8 years ago
parent
commit
0476e2fd3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/api/atom_api_browser_view.cc

+ 1 - 1
atom/browser/api/atom_api_browser_view.cc

@@ -75,7 +75,7 @@ void BrowserView::Init(v8::Isolate* isolate,
 }
 
 BrowserView::~BrowserView() {
-  api_web_contents_->DestroyWebContents();
+  api_web_contents_->DestroyWebContents(true /* async */);
 }
 
 // static