fix(ext/node): process.stdin.pause()

This commit is contained in:
Satya Rohith 2024-03-14 20:18:08 +05:30
parent 10e592f954
commit f3a8f12411
No known key found for this signature in database
GPG Key ID: B2705CF40523EB05

View File

@ -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();
}