Skip to content

Commit

Permalink
Merge pull request webtorrent#272 from grunjol/fix-cancel-unwritten-r…
Browse files Browse the repository at this point in the history
…eserve

Allow to cancel reserve on unwritten blocks
  • Loading branch information
feross committed Feb 19, 2015
2 parents df66392 + e2ca8c4 commit b60e024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b60e024

Please sign in to comment.