send reject message when we don't have piece
This commit is contained in:
parent
d3d937fe27
commit
9562a84c5a
1
index.js
1
index.js
|
@ -137,6 +137,7 @@ module.exports = function (metadata) {
|
||||||
|
|
||||||
ut_metadata.prototype._onRequest = function (piece) {
|
ut_metadata.prototype._onRequest = function (piece) {
|
||||||
if (!this._metadataComplete) {
|
if (!this._metadataComplete) {
|
||||||
|
this._reject(piece)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var start = piece * PIECE_LENGTH
|
var start = piece * PIECE_LENGTH
|
||||||
|
|
Loading…
Reference in New Issue