mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-15 02:01:21 +00:00
fix: clean up pending dials abort per feedback
This commit is contained in:
@ -199,9 +199,7 @@ class Libp2p extends EventEmitter {
|
||||
this._dht && this._dht.stop()
|
||||
])
|
||||
|
||||
for (const dial of this.dialer.pendingDials.values()) {
|
||||
dial.abort()
|
||||
}
|
||||
this.dialer.destroy()
|
||||
|
||||
await this.transportManager.close()
|
||||
await this.registrar.close()
|
||||
|
Reference in New Issue
Block a user