mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
fix(ext/node): process.stdin.pause()
This commit is contained in:
parent
10e592f954
commit
f3a8f12411
@ -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…
Reference in New Issue
Block a user