libeio bugfix part 4
authorRyan Dahl <ry@tinyclouds.org>
Wed, 6 Jan 2010 09:47:56 +0000 (01:47 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 6 Jan 2010 09:53:34 +0000 (01:53 -0800)
Oops. Last commit broke a few tests. Should work now!

src/node.cc

index 1da6d0c..5841937 100644 (file)
@@ -383,7 +383,9 @@ static Handle<Value> ByteLength(const Arguments& args) {
 static Handle<Value> Loop(const Arguments& args) {
   HandleScope scope;
 
-  if (eio_poll() == -1) ev_idle_start(EV_DEFAULT_UC_ &eio_poller);
+  // TODO Probably don't need to start this each time.
+  // Avoids failing on test/mjsunit/test-eio-race3.js though
+  ev_idle_start(EV_DEFAULT_UC_ &eio_poller);
 
   ev_loop(EV_DEFAULT_UC_ 0);
   return Undefined();