mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-31 16:32:01 +00:00
fix: reset discovery services upon stop (#618)
This commit is contained in:
@@ -225,6 +225,8 @@ class Libp2p extends EventEmitter {
|
|||||||
|
|
||||||
await Promise.all(Array.from(this._discovery.values(), s => s.stop()))
|
await Promise.all(Array.from(this._discovery.values(), s => s.stop()))
|
||||||
|
|
||||||
|
this._discovery = new Map()
|
||||||
|
|
||||||
this.connectionManager.stop()
|
this.connectionManager.stop()
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
Reference in New Issue
Block a user