Permalink
Browse files

Fixed a couple bugs where commands were being incorrectly executed mo…

…re than once and where in some cases, multiple article body transfers would be corrupt.

Also added a command-line nzb downloader example (needs integrity checking at the moment) and updated Buffy.
  • Loading branch information...
1 parent 0234007 commit 512ecc3479e879552d65ce7144793a4525830998 @mscdex committed Apr 16, 2011
View
@@ -53,7 +53,7 @@ Buffy.prototype.indexOf = function(bytes, start) {
return ret;
};
Buffy.prototype.GCBefore = function(index) {
- if (index < 0 || index >= this._length)
+ if (index < 0 || index > this._length)
throw new Error('OOB');
var toRemove = 0, amount = 0;
for (var bn=0,i=0,len=this._store.length; bn<len; ++bn) {
Oops, something went wrong.

0 comments on commit 512ecc3

Please sign in to comment.