Fix for when EV_MULTIPLICITY=1
authorJérémy Lal <holisme@gmail.com>
Mon, 22 Feb 2010 21:25:57 +0000 (13:25 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 22 Feb 2010 21:25:57 +0000 (13:25 -0800)
src/node.cc

index fb874e5210ddaf6ec0d4fa09166af1f58049b24a..6df0d6e021c2c3fd3403ca7317e2226ae461f729 100644 (file)
@@ -80,7 +80,7 @@ static ev_timer  gc_timer;
 static void GCTimeout(EV_P_ ev_timer *watcher, int revents) {
   assert(watcher == &gc_timer);
   assert(revents == EV_TIMER);
-  if (ev_pending_count() == 0) V8::IdleNotification();
+  if (ev_pending_count(EV_DEFAULT_UC) == 0) V8::IdleNotification();
 }