diff --git a/lib/file.js b/lib/file.js index 0c2b43c8..1ba159f8 100644 --- a/lib/file.js +++ b/lib/file.js @@ -44,9 +44,9 @@ function File (torrent, file) { * Selects the file to be downloaded, but at a lower priority than files with streams. * Useful if you know you need the file at a later stage. */ -File.prototype.select = function () { +File.prototype.select = function (priority) { if (this.length === 0) return - this._torrent.select(this._startPiece, this._endPiece, false) + this._torrent.select(this._startPiece, this._endPiece, priority) } /**