diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-21 06:55:12 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-21 06:57:03 +0400 |
commit | 133036fdadbca1099cf1cf589987eea01236722e (patch) | |
tree | e5dcf60cf26bd8faf652e1aa2d856b635e776e00 /src | |
parent | 1b89323e92001481f7b0e1f14736d288b58b160e (diff) |
upgrade libuv to 6e50576
Diffstat (limited to 'src')
-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 c34c1c2e624..140b8bad16d 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(); } |