From 3dd9e4cdf8a79e2c979d8125a3d53e4a60e31674 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 12 Jan 2015 16:17:44 -0800 Subject: [PATCH] uv_run_mode can not be used as bitmask See http://git.io/9ou_MQ for more on this. --- 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 042117c0..51133d41 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -225,7 +225,7 @@ void NodeBindings::UvRunOnce() { v8::Context::Scope context_scope(env->context()); // Deal with uv events. - int r = uv_run(uv_loop_, (uv_run_mode)(UV_RUN_ONCE | UV_RUN_NOWAIT)); + int r = uv_run(uv_loop_, UV_RUN_NOWAIT); if (r == 0 || uv_loop_->stop_flag != 0) message_loop_->QuitWhenIdle(); // Quit from uv. -- 2.43.0