autobee 2.0.0-rc.5 → 2.0.0-rc.6
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 -0
- package/lib/writers.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -229,6 +229,7 @@ module.exports = class Autobee extends ReadyResource {
|
|
|
229
229
|
await this.local.close()
|
|
230
230
|
await this.system.close()
|
|
231
231
|
await this._wakeup.close()
|
|
232
|
+
if (this.bootstrap && !this.bootstrap.closed) await this.bootstrap.close()
|
|
232
233
|
await this._workingBee.close()
|
|
233
234
|
await this.bee.close()
|
|
234
235
|
await this.store.close()
|
package/lib/writers.js
CHANGED
|
@@ -214,7 +214,10 @@ class ActiveWriters {
|
|
|
214
214
|
return
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
const session = bootstrap.session()
|
|
218
|
+
session.setEncryption(this.auto._getEncryptionProvider())
|
|
219
|
+
|
|
220
|
+
w = new Writer(this, this.auto.system, false, session, id)
|
|
218
221
|
w.attach()
|
|
219
222
|
w.couple()
|
|
220
223
|
}
|