corestore 6.1.0 → 6.1.1
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
|
@@ -381,6 +381,7 @@ function isStream (s) {
|
|
|
381
381
|
return typeof s === 'object' && s && typeof s.pipe === 'function'
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
function forceClose (core) {
|
|
384
|
+
async function forceClose (core) {
|
|
385
|
+
await core.ready()
|
|
385
386
|
return Promise.all(core.sessions.map(s => s.close()))
|
|
386
387
|
}
|