]> khamidou — GitHub mirrors - electron.git/commitdiff
Bump the close timeout to 10s.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 26 Apr 2014 05:15:41 +0000 (13:15 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 26 Apr 2014 05:15:41 +0000 (13:15 +0800)
Fixes atom/atom#1838.

atom/browser/native_window.cc

index 7e54870bd64d35169fb6c734e8c1982cb691436b..ed1e7afec5846ffe47dee9c064f5adef96a1e058 100644 (file)
@@ -309,11 +309,11 @@ 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 5000ms, in this way we can quickly show the unresponsive
+  // not closed in 10s, 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 (window_unresposive_closure_.IsCancelled())
-    ScheduleUnresponsiveEvent(5000);
+    ScheduleUnresponsiveEvent(10000);
 
   if (web_contents->NeedToFireBeforeUnload())
     web_contents->GetRenderViewHost()->FirePageBeforeUnload(false);