mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(ext/node): process.stdin.pause()
This commit is contained in:
parent
10e592f954
commit
f3a8f12411
1 changed files with 2 additions and 3 deletions
|
@ -110,7 +110,7 @@ export class LibuvStreamWrap extends HandleWrap {
|
|||
[kStreamBaseField]?: Reader & Writer & Closer & Ref;
|
||||
|
||||
reading!: boolean;
|
||||
#reading = false;
|
||||
#reading = true;
|
||||
destroyed = false;
|
||||
writeQueueSize = 0;
|
||||
bytesRead = 0;
|
||||
|
@ -132,8 +132,7 @@ export class LibuvStreamWrap extends HandleWrap {
|
|||
* @return An error status code.
|
||||
*/
|
||||
readStart(): number {
|
||||
if (!this.#reading) {
|
||||
this.#reading = true;
|
||||
if (this.#reading) {
|
||||
this.#read();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue