corestore 6.8.2 → 6.8.3
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 +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -266,7 +266,7 @@ module.exports = class Corestore extends ReadyResource {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
get (opts = {}) {
|
|
269
|
-
if (this._root.closing) throw new Error('The corestore is closed')
|
|
269
|
+
if (this.closing || this._root.closing) throw new Error('The corestore is closed')
|
|
270
270
|
opts = validateGetOptions(opts)
|
|
271
271
|
|
|
272
272
|
if (opts.cache !== false) {
|