mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-25 23:11:35 +00:00
fix: registrar should filter the disconnected conn (#532)
* fix: registrar on disconnect only when no connections * chore: add test
This commit is contained in:
@ -27,7 +27,8 @@ module.exports.createMockConnection = async (properties = {}) => {
|
||||
},
|
||||
direction: 'outbound',
|
||||
encryption: '/secio/1.0.0',
|
||||
multiplexer: '/mplex/6.7.0'
|
||||
multiplexer: '/mplex/6.7.0',
|
||||
status: 'open'
|
||||
},
|
||||
newStream: (protocols) => {
|
||||
const id = streamId++
|
||||
|
Reference in New Issue
Block a user