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.
- package/index.js +2 -1
- 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
|
-
|
|
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()
|