Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Revert "Check if a stream has a valid fd before read_start"
Browse files Browse the repository at this point in the history
uv_stream_t.fd is a private field which exists only on unix.
This reverts commit 8d5c120.
  • Loading branch information
piscisaureus committed Jun 16, 2012
1 parent a90bc78 commit 55ef9ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 89 deletions.
4 changes: 0 additions & 4 deletions src/stream_wrap.cc
Expand Up @@ -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;
Expand Down
85 changes: 0 additions & 85 deletions test/simple/test-net-resume-pause.js

This file was deleted.

0 comments on commit 55ef9ef

Please sign in to comment.