Skip to content

Handle peer 'error' events correctly#220

Merged
feross merged 1 commit intomasterfrom
handle-errors
Apr 8, 2017
Merged

Handle peer 'error' events correctly#220
feross merged 1 commit intomasterfrom
handle-errors

Conversation

@feross
Copy link
Member

@feross feross commented Apr 8, 2017

Handle peer 'error' events that are fired before the peer is emitted
in a 'peer' event. Once the peer is emitted in a 'peer' event, then
it's the consumer's responsibility to listen for errors.

This fixes the most common error in WebTorrent Desktop according to our
telemetry.

screen shot 2017-04-07 at 5 33 45 pm

Handle peer 'error' events that are fired *before* the peer is emitted
in a 'peer' event. Once the peer is emitted in a 'peer' event, then
it's the consumer's responsibility to listen for errors.

This fixes the most common error in WebTorrent Desktop according to our
telemetry.
@feross feross merged commit 291df67 into master Apr 8, 2017
@feross feross deleted the handle-errors branch April 8, 2017 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant