mirror of
https://github.com/danbulant/pngjs
synced 2026-06-23 16:51:45 +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();
|
||||
|
||||
// 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.emit("drain");
|
||||
|
|
|
|||
Loading…
Reference in a new issue