Skip to content

Conversation

@guanzo
Copy link
Contributor

@guanzo guanzo commented Aug 14, 2019

Fixes webtorrent/webtorrent#1245.

Calling _onSocketConnectBound() will set this.reconnecting = false, so the next time announce() is called, it won't exit early because it thinks the socket is still reconnecting.

Related: feross/simple-websocket#56

There's a pattern in webtorrent + its child libs of not checking the connection state of connections it may not have initiated.

@feross feross merged commit 4196c26 into webtorrent:master Aug 18, 2019
@feross
Copy link
Member

feross commented Aug 18, 2019

9.14.4

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.

Problem when seeder disconnect/reconnect

3 participants