diff options
author | Igor Zinkovsky <igorzi@microsoft.com> | 2011-11-05 04:55:12 +0400 |
---|---|---|
committer | Igor Zinkovsky <igorzi@microsoft.com> | 2011-11-05 05:01:03 +0400 |
commit | 6545a6dc5dda33b01f9d842ec5502eb04abfe6ad (patch) | |
tree | bca3eaf34d47f6a6760e21a0082de8fc1e529b79 /src/pipe_wrap.cc | |
parent | b54da8a10f390286203a5bbfc702cffecfbcee90 (diff) |
make updates to work with latest libuv api changes
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r-- | src/pipe_wrap.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index abcf2b8d1e4..5c2b38f1a00 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -242,20 +242,14 @@ Handle<Value> PipeWrap::Connect(const Arguments& args) { ConnectWrap* req_wrap = new ConnectWrap(); - int r = uv_pipe_connect(&req_wrap->req_, - &wrap->handle_, - *name, - AfterConnect); + uv_pipe_connect(&req_wrap->req_, + &wrap->handle_, + *name, + AfterConnect); req_wrap->Dispatched(); - if (r) { - SetErrno(uv_last_error(uv_default_loop())); - delete req_wrap; - return scope.Close(v8::Null()); - } else { - return scope.Close(req_wrap->object_); - } + return scope.Close(req_wrap->object_); } |