Browse Source

libeio bugfix part 4

Oops. Last commit broke a few tests. Should work now!
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b1e126f415
  1. 4
      src/node.cc

4
src/node.cc

@ -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();

Loading…
Cancel
Save