ChainSafe / js-libp2p-gossipsub

TypeScript implementation of Gossipsub
Apache License 2.0
151 stars 43 forks source link

fix: unhandle protocol on stop #438

Closed wemeetagain closed 1 year ago

wemeetagain commented 1 year ago

Resolves #437

Protocol handling has two components, registering inbound and outbound handlers. It seems that on gossipsub.stop, we were unregistering the outbound handler but NOT properly unregistering the inbound handler.