From d6ff804b9a5c5efb9356cc0cb441b14403fa53a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 3 Aug 2016 12:52:17 +0100 Subject: [PATCH] Remove unneeded flag check stop_flag is only set if uv_stop was called, which is never the case, so skipping the test should be harmless. --- atom/common/node_bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index 2b7fb39a9431..2207046d8e02 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -232,7 +232,7 @@ void NodeBindings::UvRunOnce() { // Deal with uv events. int r = uv_run(uv_loop_, UV_RUN_NOWAIT); - if (r == 0 || uv_loop_->stop_flag != 0) + if (r == 0) message_loop_->QuitWhenIdle(); // Quit from uv. // Tell the worker thread to continue polling.