Skip to content

Commit 6545a6d

Browse files
author
Igor Zinkovsky
committed
make updates to work with latest libuv api changes
1 parent b54da8a commit 6545a6d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/pipe_wrap.cc

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,20 +242,14 @@ Handle<Value> PipeWrap::Connect(const Arguments& args) {
242242

243243
ConnectWrap* req_wrap = new ConnectWrap();
244244

245-
int r = uv_pipe_connect(&req_wrap->req_,
246-
&wrap->handle_,
247-
*name,
248-
AfterConnect);
245+
uv_pipe_connect(&req_wrap->req_,
246+
&wrap->handle_,
247+
*name,
248+
AfterConnect);
249249

250250
req_wrap->Dispatched();
251251

252-
if (r) {
253-
SetErrno(uv_last_error(uv_default_loop()));
254-
delete req_wrap;
255-
return scope.Close(v8::Null());
256-
} else {
257-
return scope.Close(req_wrap->object_);
258-
}
252+
return scope.Close(req_wrap->object_);
259253
}
260254

261255

0 commit comments

Comments
 (0)