Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunjol <grunjol@argenteam.net>2015-02-18 04:02:42 +0300
committergrunjol <grunjol@argenteam.net>2015-02-18 04:02:42 +0300
commite2ca8c43db706fb803c3be5f97348db7b46596ed (patch)
treeae4774c7cede4422ba5fa27362781800bc549323 /lib/storage.js
parentdf663925b5218ab7ff6a3c268a56ecd5091390ad (diff)
Allow to cancel reserve on unwritten blocks
Diffstat (limited to 'lib/storage.js')
-rw-r--r--lib/storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/storage.js b/lib/storage.js
index 539d83b..3721fe4 100644
--- a/lib/storage.js
+++ b/lib/storage.js
@@ -104,7 +104,7 @@ Piece.prototype.reserveBlock = function (endGame) {
Piece.prototype.cancelBlock = function (offset) {
var self = this
- if (!self.buffer || !self._verifyOffset(offset)) {
+ if (!self._verifyOffset(offset)) {
return false
}