From e2ca8c43db706fb803c3be5f97348db7b46596ed Mon Sep 17 00:00:00 2001 From: grunjol Date: Tue, 17 Feb 2015 22:02:42 -0300 Subject: [PATCH] Allow to cancel reserve on unwritten blocks --- lib/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage.js b/lib/storage.js index 539d83be..3721fe41 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 }