aboutsummaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-16 20:14:21 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-16 20:14:21 +0200
commit55ef9ef6809d97e9c0c65d2b8f55d993bd8c5f13 (patch)
tree9a7fcfae6b4f0dbd33684dff162dd82aeaf0d2f6 /src/stream_wrap.cc
parenta90bc78534d94940a6b726c01cf8427c296b4c63 (diff)
downloadandroid-node-v8-55ef9ef6809d97e9c0c65d2b8f55d993bd8c5f13.tar.gz
android-node-v8-55ef9ef6809d97e9c0c65d2b8f55d993bd8c5f13.tar.bz2
android-node-v8-55ef9ef6809d97e9c0c65d2b8f55d993bd8c5f13.zip
Revert "Check if a stream has a valid fd before read_start"
uv_stream_t.fd is a private field which exists only on unix. This reverts commit 8d5c1201f24a6102d047bd7ec70f30da70a5ea64.
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 768d95214a..e79d212c43 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -132,10 +132,6 @@ Handle<Value> StreamWrap::ReadStart(const Arguments& args) {
UNWRAP(StreamWrap)
- // Probably the user did .pause() and then an immediate .resume()
- // before the fd had been set up. Don't even try to set up.
- if (wrap->stream_->fd < 0) return scope.Close(Integer::New(1));
-
bool ipc_pipe = wrap->stream_->type == UV_NAMED_PIPE &&
((uv_pipe_t*)wrap->stream_)->ipc;
int r;