diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-07 02:43:44 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-07 04:03:47 -0700 |
commit | 899358e797044dcbeed3399d21dbfdabaa6b0ea4 (patch) | |
tree | a2d8c910f4a8b96540152f0a025ead2e3174546c /src/stream_wrap.cc | |
parent | 4561d9e07b1b030ee8248756915879763431b119 (diff) | |
download | node-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.cc | 3 |
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(); |