]> khamidou — GitHub mirrors - electron.git/commitdiff
Increase unresponsive time to 2s when closing.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 26 Mar 2014 01:40:53 +0000 (09:40 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 26 Mar 2014 01:40:53 +0000 (09:40 +0800)
Fixes https://github.com/atom/atom/issues/1793.

atom/browser/native_window.cc

index 1e1f75fc143b6841d169742ab2eeb6c7805bb4e3..5c50d1f75a404c1f0ebccf72dd9e9a02dc49f439 100644 (file)
@@ -288,12 +288,12 @@ void NativeWindow::CloseWebContents() {
   content::WebContents* web_contents(GetWebContents());
 
   // Assume the window is not responding if it doesn't cancel the close and is
-  // not closed in 500ms, in this way we can quickly show the unresponsive
+  // not closed in 2000ms, in this way we can quickly show the unresponsive
   // dialog when the window is busy executing some script withouth waiting for
   // the unresponsive timeout.
   if (!Browser::Get()->is_quiting() &&
       window_unresposive_closure_.IsCancelled())
-    ScheduleUnresponsiveEvent(500);
+    ScheduleUnresponsiveEvent(2000);
 
   if (web_contents->NeedToFireBeforeUnload())
     web_contents->GetRenderViewHost()->FirePageBeforeUnload(false);