mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
make updates to work with latest libuv api changes
This commit is contained in:
1 parent
b54da8a10f
commit
6545a6dc5d
1 file changed
+5
-11
+5
-11
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user