autobee 2.11.6 → 2.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -732,7 +732,8 @@ module.exports = class Autobee extends ReadyResource {
732
732
  }
733
733
 
734
734
  async _shouldReindex(key, { unknown = false, length = 0, timeout = 0 } = {}) {
735
- const core = this.store.get({ key, active: false })
735
+ // an inactive session never attaches to a peer, so fetching needs an active one
736
+ const core = this.store.get({ key, active: unknown && length > 0 })
736
737
 
737
738
  try {
738
739
  await core.ready()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee",
3
- "version": "2.11.6",
3
+ "version": "2.11.7",
4
4
  "description": "Bee based autobase",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc.",