diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-20 19:55:12 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-20 19:57:03 -0700 |
commit | 133036fdadbca1099cf1cf589987eea01236722e (patch) | |
tree | e5dcf60cf26bd8faf652e1aa2d856b635e776e00 /src/handle_wrap.cc | |
parent | 1b89323e92001481f7b0e1f14736d288b58b160e (diff) | |
download | node-new-133036fdadbca1099cf1cf589987eea01236722e.tar.gz |
upgrade libuv to 6e50576
Diffstat (limited to 'src/handle_wrap.cc')
-rw-r--r-- | src/handle_wrap.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index c34c1c2e62..140b8bad16 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -40,18 +40,11 @@ Handle<Value> HandleWrap::Close(const Arguments& args) { UNWRAP assert(!wrap->object_.IsEmpty()); - int r = uv_close(wrap->handle__, OnClose); + uv_close(wrap->handle__, OnClose); wrap->StateChange(); - if (r) { - SetErrno(uv_last_error().code); - - wrap->object_->SetPointerInInternalField(0, NULL); - wrap->object_.Dispose(); - wrap->object_.Clear(); - } - return scope.Close(Integer::New(r)); + return v8::Null(); } |