Skip to content

Commit

Permalink
Fix crash that occurs when feeds are remote-added.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jul 30, 2019
1 parent 031c190 commit a5de1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Multifeed.prototype.replicate = function (opts) {
}
debug(self._id + ' [REPLICATION] succeeded in creating new local hypercore, key=' + key.toString('hex'))
feed.ready(function () {
self._addFeed(feed, String(numFeeds))
self._addFeed(feed, String(Object.keys(self._feeds).length))
if (!--pending) cb()
})
}
Expand Down

0 comments on commit a5de1a6

Please sign in to comment.