Skip to content

Commit

Permalink
src: Revert nix stdin _readableState.reading
Browse files Browse the repository at this point in the history
This reverts 8cee8f5 which was causing a regression through a possible
race condition on Windows 8 and 10.

Fixes: #2996
Fixes: #2504
  • Loading branch information
silverwind committed Oct 26, 2015
1 parent f5445db commit 06479e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
// not-reading state.
if (stdin._handle && stdin._handle.readStop) {
stdin._handle.reading = false;
stdin.push('');
stdin._readableState.reading = false;
stdin._handle.readStop();
}

Expand All @@ -733,7 +733,7 @@
stdin.on('pause', function() {
if (!stdin._handle)
return;
stdin.push('');
stdin._readableState.reading = false;
stdin._handle.reading = false;
stdin._handle.readStop();
});
Expand Down

0 comments on commit 06479e4

Please sign in to comment.