Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #665 from bookchin/master
Browse files Browse the repository at this point in the history
v6.2.2 (hotfix)
  • Loading branch information
bookchin committed Feb 28, 2017
2 parents faec7c7 + 468b590 commit 8120b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions lib/storage/adapter.js
Expand Up @@ -180,15 +180,14 @@ StorageAdapter.prototype.createReadStream = function() {
if (isFlowing) {
return;
} else {
try {
keyStream = self._keys();
} catch (err) {
return readStream.emit('error', err);
}
isFlowing = true;
}

try {
keyStream = self._keys();
} catch (err) {
return readStream.emit('error', err);
}

function getStorageItemByKey(key) {
keyStream.pause();
self.peek(key.toString(), function(err, item) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "storj-lib",
"version": "6.2.1",
"version": "6.2.2",
"description": "implementation of the storj protocol for node.js and the browser",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 8120b22

Please sign in to comment.