Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

fix: conditionally emit errors from muxer #84

Merged
merged 2 commits into from
Dec 4, 2018
Merged

Conversation

jacobheun
Copy link
Contributor

This will emit errors from muxer if there are listeners for the events. This will prevent uncaught exceptions if there are no listeners. Since errors will cause streams to close, there's no need to mandate having listeners.

Related to libp2p/js-libp2p-floodsub#63 (comment)

License: MIT
Signed-off-by: Jacob Heun <[email protected]>
@ghost ghost assigned jacobheun Dec 4, 2018
@ghost ghost added the in progress label Dec 4, 2018
License: MIT
Signed-off-by: Jacob Heun <[email protected]>
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jacobheun jacobheun merged commit 17ef9ee into master Dec 4, 2018
@ghost ghost removed the in progress label Dec 4, 2018
@jacobheun jacobheun deleted the fix/conditional-error branch December 4, 2018 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants