this._stream should be set to sink (in reference to #13)

This commit is contained in:
Mathias Buus 2014-04-03 02:28:41 +02:00
parent d661f7f913
commit 12973239c1

View file

@ -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;