summaryrefslogtreecommitdiff
path: root/src/pipe_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 6c3887d84f..c99fe47397 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -204,10 +204,7 @@ void PipeWrap::OnConnection(uv_stream_t* handle, int status) {
PipeWrap* client_wrap =
static_cast<PipeWrap*>(client_obj->GetPointerFromInternalField(0));
- int r = uv_accept(handle, (uv_stream_t*)&client_wrap->handle_);
-
- // uv_accept should always work.
- assert(r == 0);
+ if (uv_accept(handle, (uv_stream_t*)&client_wrap->handle_)) return;
// Successful accept. Call the onconnection callback in JavaScript land.
Local<Value> argv[1] = { client_obj };