diff --git a/lib/handle.js b/lib/handle.js index 399742b..b8d7748 100644 --- a/lib/handle.js +++ b/lib/handle.js @@ -85,11 +85,11 @@ Handle.prototype.readStart = function readStart () { return 0 } -Handle.prototype.readStop = function readStop () { +Handle.prototype._readStop = function _readStop () { this._reading = false if (!this._stream) { - this.once('stream', this.readStop) + this.once('stream', this._readStop) return 0 } this._stream.pause() @@ -128,7 +128,7 @@ Handle.prototype._close = function _close () { } }) - this.readStop() + this._readStop() } Handle.prototype.shutdown = function shutdown (req) {