]> khamidou — GitHub mirrors - electron.git/commitdiff
Detect unresponsive window when quitting.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 8 Apr 2014 06:22:22 +0000 (14:22 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 8 Apr 2014 06:24:44 +0000 (14:24 +0800)
Preivously this is disabled because quitting multiple windows could
bring up the unresponsive dialog, but since we now have increased the
unresponsive time limitto 5s, this is not needed anymore and could cause
confusions.

Fixes #17.

atom/browser/native_window.cc

index e2384cd958bcde8c38bb8ee8f520b7fa07a221bc..ad0977199b2cb66494abb394b2ba3fa72fe2aedd 100644 (file)
@@ -313,8 +313,7 @@ void NativeWindow::CloseWebContents() {
   // not closed in 5000ms, 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())
+  if (window_unresposive_closure_.IsCancelled())
     ScheduleUnresponsiveEvent(5000);
 
   if (web_contents->NeedToFireBeforeUnload())