diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-11-05 17:38:02 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-05 17:38:02 -0700 |
commit | a3750a983351f3646592d2cb831b947fb6bfbf5a (patch) | |
tree | 06b0d7bb17a6c301ce314d4588a5ff271f9daae0 | |
parent | b4def4806c50b5aa6a71376c41bb1d5cbe41d29a (diff) | |
download | nodejs-a3750a983351f3646592d2cb831b947fb6bfbf5a.tar.gz nodejs-a3750a983351f3646592d2cb831b947fb6bfbf5a.tar.bz2 nodejs-a3750a983351f3646592d2cb831b947fb6bfbf5a.zip |
Remove unnecessary ref/unref in iowatcher cb
-rw-r--r-- | src/node_io_watcher.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_io_watcher.cc b/src/node_io_watcher.cc index d00763310..7e516155a 100644 --- a/src/node_io_watcher.cc +++ b/src/node_io_watcher.cc @@ -51,9 +51,7 @@ void IOWatcher::Callback(EV_P_ ev_io *w, int revents) { argv[0] = Local<Value>::New(revents & EV_READ ? True() : False()); argv[1] = Local<Value>::New(revents & EV_WRITE ? True() : False()); - io->Ref(); callback->Call(io->handle_, 2, argv); - io->Unref(); if (try_catch.HasCaught()) { FatalException(try_catch); |