From: Cheng Zhao Date: Tue, 13 Jan 2015 00:17:44 +0000 (-0800) Subject: uv_run_mode can not be used as bitmask X-Git-Tag: v0.21.0~1^2~14 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3dd9e4cdf8a79e2c979d8125a3d53e4a60e31674;p=electron.git uv_run_mode can not be used as bitmask See http://git.io/9ou_MQ for more on this. --- 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.