From 3e6df19eff74d346d9d23df129100246fc394818 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 9 May 2014 12:08:15 +0800 Subject: [PATCH] Do not send "unresponsive" when window is closed. --- atom/browser/native_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 4e5038f51b6c..3e24f6aa1364 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -576,7 +576,7 @@ void NativeWindow::ScheduleUnresponsiveEvent(int ms) { void NativeWindow::NotifyWindowUnresponsive() { window_unresposive_closure_.Cancel(); - if (!HasModalDialog()) + if (!is_closed_ && !HasModalDialog()) FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnRendererUnresponsive());