mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-30 16:01:59 +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()))
|
||||
|
||||
this._discovery = new Map()
|
||||
|
||||
this.connectionManager.stop()
|
||||
|
||||
await Promise.all([
|
||||
|
Reference in New Issue
Block a user