From 9562a84c5ae7117130e3f5094f62aca9b90f0882 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 3 Jun 2014 21:17:16 -0700 Subject: [PATCH] send reject message when we don't have piece --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 3a58823..7c524c6 100644 --- a/index.js +++ b/index.js @@ -137,6 +137,7 @@ module.exports = function (metadata) { ut_metadata.prototype._onRequest = function (piece) { if (!this._metadataComplete) { + this._reject(piece) return } var start = piece * PIECE_LENGTH