Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
net: use pause() instead of changing _readableState.flowing
  • Loading branch information
chrisdickinson committed Feb 4, 2015
commit 0e02aaf6c5d79592fe49bd97eb9c891f01f6bd1b
2 changes: 1 addition & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function Socket(options) {
// stop the handle from reading and pause the stream
this._handle.reading = false;
this._handle.readStop();
this._readableState.flowing = false;
this.pause();
} else {
this.read(0);
}
Expand Down