From 77d6bb2c3f82c785dbe6a43b7c9c753aa90aba1b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 9 May 2014 12:10:37 +0800 Subject: [PATCH] Bring the close timeout back to 5s. --- atom/browser/native_window.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 3e24f6aa136..558778029e5 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -313,11 +313,11 @@ void NativeWindow::CloseWebContents() { } // Assume the window is not responding if it doesn't cancel the close and is - // not closed in 10s, in this way we can quickly show the unresponsive + // not closed in 5s, 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(10000); + ScheduleUnresponsiveEvent(5000); if (web_contents->NeedToFireBeforeUnload()) web_contents->GetRenderViewHost()->FirePageBeforeUnload(false);