From: Cheng Zhao Date: Thu, 27 Feb 2014 04:47:00 +0000 (+0800) Subject: Do not dectect unresponsive eagerly when quitting. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c98e16b18f29ecbba6e16b1d8bc05184b64113b0;p=electron.git Do not dectect unresponsive eagerly when quitting. Fixes https://github.com/atom/atom/issues/1589. --- diff --git a/browser/native_window.cc b/browser/native_window.cc index c54e32d5..3ef5bc7d 100644 --- a/browser/native_window.cc +++ b/browser/native_window.cc @@ -260,7 +260,8 @@ void NativeWindow::CloseWebContents() { // not closed in 500ms, 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()) { + if (!Browser::Get()->is_quiting() && + window_unresposive_closure_.IsCancelled()) { window_unresposive_closure_.Reset( base::Bind(&NativeWindow::RendererUnresponsive, weak_factory_.GetWeakPtr(),