]> khamidou — GitHub mirrors - electron.git/commitdiff
uv_run_mode can not be used as bitmask
authorCheng Zhao <zcbenz@gmail.com>
Tue, 13 Jan 2015 00:17:44 +0000 (16:17 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 27 Jan 2015 21:18:31 +0000 (13:18 -0800)
See http://git.io/9ou_MQ for more on this.

atom/common/node_bindings.cc

index 042117c0ff48c1d43d2396b687d28a4c5e82b265..51133d41f838311a3f9f292f3327e220eade7ea0 100644 (file)
@@ -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.