mirror of
https://github.com/danbulant/pngjs
synced 2026-07-08 20:50:35 +00:00
fixes error when trying to access this._reads in chunkstream.js (#147)
This commit is contained in:
parent
2c7b959a73
commit
792e432c9c
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ ChunkStream.prototype.read = function (length, callback) {
|
||||||
this._process();
|
this._process();
|
||||||
|
|
||||||
// its paused and there is not enought data then ask for more
|
// its paused and there is not enought data then ask for more
|
||||||
if (this._paused && this._reads.length > 0) {
|
if (this._paused && this._reads && this._reads.length > 0) {
|
||||||
this._paused = false;
|
this._paused = false;
|
||||||
|
|
||||||
this.emit("drain");
|
this.emit("drain");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue