Skip to content

Commit 85a3506

Browse files
author
James Halliday
committed
proper backpressure on backend's next()
1 parent 8e35688 commit 85a3506

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ Backend.prototype._read = function (n) {
7373
Backend.prototype._write = function (buf, enc, next) {
7474
if (this._stream) {
7575
this._stream.push(buf);
76-
next();
7776
}
7877
else {
7978
this._buffer = buf;
80-
this._next = next;
8179
}
80+
this._next = next;
8281
};

0 commit comments

Comments
 (0)