projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b54da8a
)
make updates to work with latest libuv api changes
author
Igor Zinkovsky
<igorzi@microsoft.com>
Sat, 5 Nov 2011 00:55:12 +0000
(17:55 -0700)
committer
Igor Zinkovsky
<igorzi@microsoft.com>
Sat, 5 Nov 2011 01:01:03 +0000
(18:01 -0700)
src/pipe_wrap.cc
patch
|
blob
|
history
diff --git
a/src/pipe_wrap.cc
b/src/pipe_wrap.cc
index abcf2b8d1e4eea87bcbcf372e1346ed66d1e1925..5c2b38f1a0019fb6d64acd5c9698f6e4ecf94b4e 100644
(file)
--- 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_);
}