this._stream should be set to sink (in reference to #13)
This commit is contained in:
parent
d661f7f913
commit
12973239c1
1 changed files with 3 additions and 3 deletions
6
pack.js
6
pack.js
|
@ -85,11 +85,11 @@ Pack.prototype.entry = function(header, buffer, callback) {
|
|||
return;
|
||||
}
|
||||
|
||||
this._encode(header);
|
||||
this._stream = new PassThrough();
|
||||
|
||||
var sink = new Sink(this);
|
||||
|
||||
this._encode(header);
|
||||
this._stream = sink;
|
||||
|
||||
eos(sink, function(err) {
|
||||
self._stream = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue