summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-07 02:43:44 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-10-07 04:03:47 -0700
commit899358e797044dcbeed3399d21dbfdabaa6b0ea4 (patch)
treea2d8c910f4a8b96540152f0a025ead2e3174546c /src/stream_wrap.cc
parent4561d9e07b1b030ee8248756915879763431b119 (diff)
downloadnode-new-899358e797044dcbeed3399d21dbfdabaa6b0ea4.tar.gz
Add test-child-process-fork2 and fixes to make it work
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index ab92e5668d..cea1a5589e 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -183,8 +183,6 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, ssize_t nread,
uv_buf_t buf, uv_handle_type pending) {
HandleScope scope;
- assert(pending == UV_UNKNOWN_HANDLE); // TODO
-
StreamWrap* wrap = static_cast<StreamWrap*>(handle->data);
// We should not be getting this callback if someone as already called
@@ -220,6 +218,7 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, ssize_t nread,
Integer::New(nread)
};
+
if (pending == UV_TCP) {
// Instantiate the client javascript object and handle.
Local<Object> pending_obj = TCPWrap::Instantiate();